This is the Hatching class. The hatching fills a close area delimited by boundaries (a set of Dtk_Polyline polylines). The first boundary is the outer bounday, following boundaries are inner boundaries. A hatching area can include several Dtk_HatchingPattern patterns (repetition of decorated/styled lines, dots or simple solid coloring). More...
Inheritance diagram for Dtk_Hatching:Public Member Functions | |
| virtual Dtk_ErrorStatus | _Store (void *) |
| Dtk_tab< Dtk_PolylinePtr > & | Boundaries () |
| Retrieves the hatching area boundaries as an array(ordered polylines). The first bounday (this->Boundaries[0]) is the outer boundary. More... | |
| Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
| Retrieves the dynamic entity type. More... | |
| int | DtkDynamicType (const int &inId) |
| virtual void | dump (FILE *file=stdout) |
| Dtk_tab< Dtk_EntityPtr > | GeneratePatternGeometries (const Dtk_dir &inXRefDir=Dtk_dir(1., 0., 0.), const Dtk_dir &inNormalDir=Dtk_dir(0., 0., 1.)) |
| Generate Pattern geometries from Dtk_Hatching. More... | |
| Dtk_InfoPtr | get_info () const |
| type_detk | get_type_detk () const |
| const Dtk_ID & | GetID () const |
| Get Internal UniqueID. More... | |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_InfoPtr & | info () |
| Dtk_Hatching & | operator= (const Dtk_Hatching &in) |
| Copy assignment operator. More... | |
| Dtk_tab< Dtk_HatchingPattern > & | Patterns () |
| Retrieves the hatching area patterns. Patterns describes hatch line presentations (angle, pitch etc...) More... | |
| virtual void | PrepareTransfo () |
| void | SetApplyScaleOnPattern (bool inApply=true) |
| Specify if applying transform also scales pattern data. Not active by default. More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
| Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
| static Dtk_HatchingPtr | Create () |
| Calls default constructor to allocate a new object. More... | |
| static Dtk_Hatching * | DtkDynamicCast (Dtk_Object *s) |
| Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } |
| enum | { _typeID = DTK_TYPE_ENTITY } |
| enum | { _typeID = DTK_TYPE_HATCHING } |
Protected Member Functions | |
| void | _copy (const Dtk_Entity &s) |
| void | _init () |
| void | _reset () |
| virtual Dtk_Object * | Clone () |
| Dtk_Hatching () | |
| Dtk_Hatching (const Dtk_Hatching &s) | |
| ~Dtk_Hatching () | |
| Destructor. More... | |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the Hatching class. The hatching fills a close area delimited by boundaries (a set of Dtk_Polyline polylines). The first boundary is the outer bounday, following boundaries are inner boundaries. A hatching area can include several Dtk_HatchingPattern patterns (repetition of decorated/styled lines, dots or simple solid coloring).
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, and Dtk_Point.
| Dtk_tab<Dtk_PolylinePtr>& Dtk_Hatching::Boundaries | ( | ) |
Retrieves the hatching area boundaries as an array(ordered polylines). The first bounday (this->Boundaries[0]) is the outer boundary.
|
protectedvirtual |
Implements Dtk_Entity.
|
static |
Calls default constructor to allocate a new object.
|
static |
Performs a dynamic cast - doesn't need RTTI -.
|
virtualinherited |
Implements Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, and Dtk_AxisSystem.
|
virtualinherited |
| Dtk_tab< Dtk_EntityPtr > Dtk_Hatching::GeneratePatternGeometries | ( | const Dtk_dir & | inXRefDir = Dtk_dir(1., 0., 0.), |
| const Dtk_dir & | inNormalDir = Dtk_dir(0., 0., 1.) |
||
| ) |
Generate Pattern geometries from Dtk_Hatching.
| inXRefDir | X reference vector - (1,0,0) by default -. |
| inNormalDir | Normal vector - (0,0,1) by default -. |
|
inherited |
|
virtual |
Implements Dtk_Entity.
|
inherited |
Get Internal UniqueID.
|
virtualinherited |
Reimplemented from Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, and Dtk_Point.
|
inherited |
| Dtk_Hatching& Dtk_Hatching::operator= | ( | const Dtk_Hatching & | in | ) |
Copy assignment operator.
| in | Object to copy from. |
| Dtk_tab<Dtk_HatchingPattern>& Dtk_Hatching::Patterns | ( | ) |
Retrieves the hatching area patterns. Patterns describes hatch line presentations (angle, pitch etc...)
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
| void Dtk_Hatching::SetApplyScaleOnPattern | ( | bool | inApply = true | ) |
Specify if applying transform also scales pattern data. Not active by default.
| inApply | Boolean denoting if scale shall be applied on pattern data - true by default -. |
|
virtual |
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. |
Implements Dtk_Entity.
|
protected |
|
protectedinherited |