Represents the grids. More...
 Inheritance diagram for Dtk_Grid:Public Types | |
| enum | OriginReferenceOption { Absolute, WCS, Local } | 
| enum | ShowLabelOption { None, ParallelToView, Always } | 
Public Member Functions | |
| virtual Dtk_ErrorStatus | _Store (void *) | 
| void | AddAdditionnalGeometries (const Dtk_tab< Dtk_EntityPtr > &inAdditionnalGeometries) | 
| Adds some additionnal geometries to the Dtk_2dEntity.  More... | |
| void | AddAdditionnalGeometry (const Dtk_EntityPtr &inAdditionnalGeometry) | 
| Adds an additionnal geometry to the Dtk_2dEntity.  More... | |
| void | AddAdditionnalTexts (Dtk_CompositeText inAddtionnalTexts) | 
| Adds some additionnal texts to the Dtk_2dEntity.  More... | |
| Dtk_ErrorStatus | AddLeader (const Dtk_LeaderPtr &leader) | 
| Adds a leader to the Dtk_Annotation.  More... | |
| void | DrawLabelsInOriginUnit (const Dtk_bool &inVal) | 
| Draws Labels in millimeters or in origin unit.  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_InfoPtr | get_info () const | 
| type_detk | get_type_detk () const | 
| const Dtk_tab< Dtk_EntityPtr > & | GetAdditionnalGeometries () const | 
| Retrieves the additionnal geometries of the Dtk_2dEntity.  More... | |
| const Dtk_CompositeText & | GetAdditionnalTexts () const | 
| Retrieves the additionnal texts of the Dtk_2dEntity.  More... | |
| Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const | 
| Processes all the Dtk_Annotation anchor points.  More... | |
| Dtk_Oriented2dBBox & | GetBoundingBox () const | 
| Gets the 2d bbox of the grid.  More... | |
| Dtk_bool | GetDisplayGridOption () const | 
| Gets the display grid option.  More... | |
| Dtk_bool | GetDisplayMajorLinesOption () const | 
| Gets the display major lines option.  More... | |
| Dtk_bool | GetDisplayOnTopOption () const | 
| Gets the display on top option.  More... | |
| OriginReferenceOption | GetDisplayOriginReferenceOption () const | 
| Gets the display origin reference option.  More... | |
| ShowLabelOption | GetDisplayShowLabelOption () const | 
| Gets the display show labels option.  More... | |
| Dtk_tab< Dtk_EntityPtr > | GetGeometries () const | 
| Retrieves the Dtk_Grid geometries.  More... | |
| const Dtk_ID & | GetID () const | 
| Get Internal UniqueID.  More... | |
| Dtk_CompositeText | GetLabelsAsCompositeTexts () const | 
| Retrieves the Dtk_Grid labels.  More... | |
| Dtk_LeaderPtr | GetLeader (const Dtk_Size_t &inPos) const | 
| Gets the i'th leader.  More... | |
| virtual Dtk_pnt | GetLocation () const | 
| Get the annoation location point.  More... | |
| const Dtk_anchor_type & | GetLocationAnchorType () const | 
| Gets the location anchor type - read only -.  More... | |
| Dtk_FontLineType | GetMajorLineStyle () const | 
| Gets the major line font line type.  More... | |
| Dtk_Double64 | GetMajorLineWidth () const | 
| Gets the major line width.  More... | |
| Dtk_FontLineType | GetMinorLineStyle () const | 
| Gets the minor line font line type.  More... | |
| Dtk_Double64 | GetMinorLineWidth () const | 
| Gets the minor line width.  More... | |
| Dtk_Size_t | GetNumLeaders () const | 
| Retrieves the number of leaders.  More... | |
| Dtk_Double64 | GetOffset () const | 
| Gets the annotation offset - read only -.  More... | |
| Dtk_Double64 | GetRotationAngle (const Dtk_dir &inXAxis=Dtk_dir(1, 0, 0), const Dtk_dir &inYAxis=Dtk_dir(0, 1, 0)) const | 
| Gets the text rotation angle giving a reference base.  More... | |
| virtual Dtk_Size_t | GetSize () const | 
| Dtk_Int32 | GetUMinorPerMajor () const | 
| Gets U minor lines per major.  More... | |
| Dtk_Double64 | GetUSpacing () const | 
| Gets U spacing between lines.  More... | |
| Dtk_Int32 | GetVMinorPerMajor () const | 
| Gets V minor lines per major.  More... | |
| Dtk_Double64 | GetVSpacing () const | 
| Gets V spacing between lines.  More... | |
| Dtk_dir | GetXAxis () const | 
| Get the X Axis - read only -.  More... | |
| Dtk_dir | GetYAxis () const | 
| Get the Y Axis - read only -.  More... | |
| Dtk_InfoPtr & | info () | 
| virtual void | PrepareTransfo () | 
| virtual Dtk_ErrorStatus | Reverse () | 
| Reverses the Dtk_Annotation.  More... | |
| Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType) | 
| Sets the Dtk_Annotation anchor point.  More... | |
| SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const | |
| Get the justification type - read only -.  More... | |
| Dtk_ErrorStatus | SetLocation (const Dtk_pnt &inLocation) | 
| Sets the location point of the Dtk_Annotation.  More... | |
| Dtk_ErrorStatus | SetLocation (const Dtk_pnt &location, const Dtk_anchor_type &inAnchorType) | 
| Sets the location point of the Dtk_Annotation.  More... | |
| Dtk_ErrorStatus | SetOffset (const Dtk_Double64 &inOffset) | 
| Sets the offset of the Dtk_Annotation.  More... | |
| virtual Dtk_ErrorStatus | SetRotationAngle (const Dtk_Double64 &inRotationAngle) | 
| Sets the annotation angle using the annotation base.  More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) | 
| Applies a transformation matrix to the entity. //!  More... | |
Static Public Member Functions | |
| static Dtk_GridPtr | Create (const Dtk_Grid &in) | 
| CreateCopy{in}.  More... | |
| static Dtk_GridPtr | Create (const Dtk_Oriented2dBBox &inUVBBox, const Dtk_Double64 &inUSpacing, const Dtk_Double64 &inVSpacing, const Dtk_Int32 &inUMinorPerMajor=1, const Dtk_Int32 &inVMinorPerMajor=1, const Dtk_RGB &inLineColor=Dtk_RGB(), const Dtk_FontLineType &inMajorLineStyle=DTK_NO_PATTERN, const Dtk_FontLineType &inMinorLineStyle=DTK_NO_PATTERN, const Dtk_Double64 &inMajorLineWidth=1.0, const Dtk_Double64 &inMinorLineWidth=1.0, const Dtk_bool &inDisplayGridOpt=DTK_TRUE, const Dtk_bool &inDisplayOnTopOpt=DTK_TRUE, const Dtk_bool &inDisplayMajorLinesOpt=DTK_FALSE, const ShowLabelOption &inShowLabelOpt=Dtk_Grid::Always, const OriginReferenceOption &inOriginReferenceOpt=Dtk_Grid::Local, const Dtk_Double64 &inConceptionUnit=1.0) | 
| Calls full featured constructor to allocate a new object.  More... | |
| static Dtk_Grid * | DtkDynamicCast (Dtk_Object *s) | 
| Performs a dynamic cast - doesn't need RTTI -.  More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_2D_ENTITY } | 
| enum | { _typeID = DTK_TYPE_ENTITY } | 
| enum | { _typeID = DTK_TYPE_ANNOTATION } | 
| enum | { _typeID = DTK_TYPE_GRID } | 
Protected Member Functions | |
| void | _Copy (const Dtk_2dEntity &s) | 
| void | _copy (const Dtk_Entity &s) | 
| void | _init () | 
| void | _reset () | 
| virtual Dtk_Object * | Clone () | 
| Dtk_Grid () | |
| Default constructor.  More... | |
| Dtk_Grid (const Dtk_Grid &grid) | |
| Dtk_Grid (const Dtk_Oriented2dBBox &inUVBBox, const Dtk_Double64 &inUSpacing, const Dtk_Double64 &inVSpacing, const Dtk_Int32 &inUMinorPerMajor, const Dtk_Int32 &inVMinorPerMajor, const Dtk_RGB &inLineColor, const Dtk_FontLineType &inMajorLineStyle, const Dtk_FontLineType &inMinorLineStyle, const Dtk_Double64 &inMajorLineWidth, const Dtk_Double64 &inMinorLineWidth, const Dtk_bool &inDisplayGridOpt, const Dtk_bool &inDisplayOnTopOpt, const Dtk_bool &inDisplayMajorLinesOpt, const ShowLabelOption &inShowLabelOpt, const OriginReferenceOption &inOriginReferenceOpt, const Dtk_Double64 &inConceptionUnit) | |
| ~Dtk_Grid () | |
| Destructor.  More... | |
Protected Attributes | |
| Dtk_Handle * | _Private | 
| unsigned long | count_ | 
Represents the grids.
Example:
Here is a grid with 3 minor lines per major in U and V directions
      
  | 
  protected | 
Default constructor.
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
Destructor.
      
  | 
  protectedinherited | 
      
  | 
  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.
      
  | 
  inherited | 
Adds some additionnal geometries to the Dtk_2dEntity.
| inAdditionnalGeometries | The geometries to be added | 
      
  | 
  inherited | 
Adds an additionnal geometry to the Dtk_2dEntity.
| inAdditionnalGeometry | The geometry to be added | 
      
  | 
  inherited | 
Adds some additionnal texts to the Dtk_2dEntity.
| inAddtionnalTexts | The texts to be added | 
      
  | 
  inherited | 
Adds a leader to the Dtk_Annotation.
| leader | The leader to be added | 
      
  | 
  protectedvirtual | 
Implements Dtk_Annotation.
      
  | 
  static | 
CreateCopy{in}.
      
  | 
  static | 
Calls full featured constructor to allocate a new object.
| inUVBBox | Bounding box of the grid | 
| inUSpacing | U spacing between lines | 
| inVSpacing | v spacing between lines | 
| inUMinorPerMajor | U number of minor lines per major lines | 
| inVMinorPerMajor | V number of minor lines per major lines | 
| inLineColor | Grid Color | 
| inMajorLineStyle | Major lines style | 
| inMinorLineStyle | Minor lines style | 
| inMajorLineWidth | Major lines width | 
| inMinorLineWidth | Minor lines width | 
| void Dtk_Grid::DrawLabelsInOriginUnit | ( | const Dtk_bool & | inVal | ) | 
Draws Labels in millimeters or in origin unit.
| inVal | : Draws Labels in millimeters (DTK_FALSE) or in origin unit (DTK_TRUE) | 
      
  | 
  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 | 
      
  | 
  inherited | 
      
  | 
  virtual | 
      
  | 
  inherited | 
Retrieves the additionnal geometries of the Dtk_2dEntity.
      
  | 
  inherited | 
Retrieves the additionnal texts of the Dtk_2dEntity.
      
  | 
  virtual | 
Processes all the Dtk_Annotation anchor points.
| outTabPnts | The resulting anchor point array. | 
Implements Dtk_Annotation.
| Dtk_Oriented2dBBox& Dtk_Grid::GetBoundingBox | ( | ) | const | 
Gets the 2d bbox of the grid.
| Dtk_bool Dtk_Grid::GetDisplayGridOption | ( | ) | const | 
Gets the display grid option.
| Dtk_bool Dtk_Grid::GetDisplayMajorLinesOption | ( | ) | const | 
Gets the display major lines option.
| Dtk_bool Dtk_Grid::GetDisplayOnTopOption | ( | ) | const | 
Gets the display on top option.
| OriginReferenceOption Dtk_Grid::GetDisplayOriginReferenceOption | ( | ) | const | 
Gets the display origin reference option.
| ShowLabelOption Dtk_Grid::GetDisplayShowLabelOption | ( | ) | const | 
Gets the display show labels option.
| Dtk_tab< Dtk_EntityPtr > Dtk_Grid::GetGeometries | ( | ) | const | 
Retrieves the Dtk_Grid geometries.
      
  | 
  inherited | 
Get Internal UniqueID.
| Dtk_CompositeText Dtk_Grid::GetLabelsAsCompositeTexts | ( | ) | const | 
Retrieves the Dtk_Grid labels.
      
  | 
  inherited | 
Gets the i'th leader.
| inPos | The leader position - 0 indexed - | 
      
  | 
  virtualinherited | 
Get the annoation location point.
      
  | 
  inherited | 
Gets the location anchor type - read only -.
| Dtk_FontLineType Dtk_Grid::GetMajorLineStyle | ( | ) | const | 
Gets the major line font line type.
| Dtk_Double64 Dtk_Grid::GetMajorLineWidth | ( | ) | const | 
Gets the major line width.
| Dtk_FontLineType Dtk_Grid::GetMinorLineStyle | ( | ) | const | 
Gets the minor line font line type.
| Dtk_Double64 Dtk_Grid::GetMinorLineWidth | ( | ) | const | 
Gets the minor line width.
      
  | 
  inherited | 
Retrieves the number of leaders.
      
  | 
  inherited | 
Gets the annotation offset - read only -.
      
  | 
  inherited | 
Gets the text rotation angle giving a reference base.
| inXAxis | The reference X Axis - default value = (1,0,0) - | 
| inYAxis | The reference Y Axis - default value = (0,1,0) - | 
      
  | 
  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.
| Dtk_Int32 Dtk_Grid::GetUMinorPerMajor | ( | ) | const | 
Gets U minor lines per major.
| Dtk_Double64 Dtk_Grid::GetUSpacing | ( | ) | const | 
Gets U spacing between lines.
| Dtk_Int32 Dtk_Grid::GetVMinorPerMajor | ( | ) | const | 
Gets V minor lines per major.
| Dtk_Double64 Dtk_Grid::GetVSpacing | ( | ) | const | 
Gets V spacing between lines.
      
  | 
  inherited | 
Get the X Axis - read only -.
      
  | 
  inherited | 
Get the Y Axis - read only -.
      
  | 
  inherited | 
      
  | 
  virtualinherited | 
Reimplemented in Dtk_OffsetSurface.
      
  | 
  virtualinherited | 
Reverses the Dtk_Annotation.
Reimplemented in Dtk_DatumTarget.
      
  | 
  virtual | 
Sets the Dtk_Annotation anchor point.
| inNewLocation | The new location point. | 
| inLocationAnchorType | The anchor type related to the new location. | 
Implements Dtk_Annotation.
      
  | 
  inherited | 
Get the justification type - read only -.
      
  | 
  virtual | 
Sets the location point of the Dtk_Annotation.
The location point is related to the anchor type
| inLocation | the location point | 
Implements Dtk_Annotation.
      
  | 
  inherited | 
Sets the location point of the Dtk_Annotation.
The location point is related to the anchor type
| location | the location point | 
| inAnchorType | The anchor type related to the new location. | 
      
  | 
  virtual | 
Sets the offset of the Dtk_Annotation.
The Offset is used to process bounding frames.
| inOffset | The offset | 
Implements Dtk_Annotation.
      
  | 
  virtualinherited | 
Sets the annotation angle using the annotation base.
| inRotationAngle | The rotation angle to be set | 
Reimplemented in Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
      
  | 
  virtual | 
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. | 
Implements Dtk_Annotation.
      
  | 
  protected | 
      
  | 
  protectedinherited |