API Reference > OdDb Classes > OdDbHatch Class > OdDbHatch Methods > OdDbHatch::setGradient Method
OdDbHatch::setGradient Method
Syntax
C++
void setGradient(OdDbHatch::GradientPatternType gradientType, const OdString& gradientName);
Parameters 
Description 
OdDbHatch::GradientPatternType gradientType 
[in] Gradient type.  
const OdString& gradientName 
[in] Gradient name: SPHERICAL, HEMISPHERICAL, CURVED, LINEAR, CYLINDER, INVSPHERICAL, INVHEMISPHERICAL, INVCURVED, INVLINEAR, or INVCYLINDER. 

Sets the gradient type and name for this Hatch entity.

gradientType is one of the following: 

 

Name 
Value 
kPreDefinedGradient 
kUserDefinedGradient 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.