API Reference > OdDb Classes > OdDbHatch Class > OdDbHatch Methods > OdDbHatch::setRawPattern Method
OdDbHatch::setRawPattern Method
Syntax
C++
void setRawPattern(OdDbHatch::HatchPatternType patType, const OdString& patName, double angle, double scale, const OdHatchPattern& pat);
Parameters 
Description 
OdDbHatch::HatchPatternType patType 
[in] Pattern type.  
const OdString& patName 
[in] Pattern name.  
double angle 
[in] Pattern angle.  
double scale 
[in] Pattern scale.  
const OdHatchPattern& pat 
[in] Pattern definition (already scaled and rotated) 

Sets the pattern data for this Hatch entity directly, bypassing OdHatchPatternManager (DXF 76 and DXF 2). 

 

patType must be one of the following: 

 

Name 
Value 
kUserDefined 
kPreDefined 
kCustomDefined 

 

patName is ignored for patType == kUserDefined; appearance is defined by setPatternAngle(), setPatternSpace() and setPatternDouble(). 

angle and scale are not applied to the pattern.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.