This is the Dtk_LineTypeDefinition Class.
The Dtk_LineTypeDefinition object is used to store any informations about style of curves.  
 More...
 | 
| enum   | { _typeID = DTK_TYPE_LINE_TYPE_DEFINITION
 } | 
|   | 
This is the Dtk_LineTypeDefinition Class.
The Dtk_LineTypeDefinition object is used to store any informations about style of curves. 
- See also
 - Use Dtk_LineTypeDefinitionPtr class to handle it. 
 
 
◆ anonymous enum
◆ Dtk_LineTypePatternDescriptorType
| Enumerator | 
|---|
| DTK_LINE_TYPE_PATTERN_DESCRIPTOR_UNKNOWN  |  | 
| DTK_LINE_TYPE_PATTERN_DESCRIPTOR_DASH  |  | 
| DTK_LINE_TYPE_PATTERN_DESCRIPTOR_DOT  |  | 
| DTK_LINE_TYPE_PATTERN_DESCRIPTOR_GAP  |  | 
 
 
◆ Dtk_LineTypeDefinition() [1/4]
Copy constructor. 
- Parameters
 - 
  
    | inToBeCopied | Object to copy from.  | 
  
   
 
 
◆ Dtk_LineTypeDefinition() [2/4]
  
  
      
        
          | Dtk_LineTypeDefinition::Dtk_LineTypeDefinition  | 
          ( | 
          const Dtk_string &  | 
          inName | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ Dtk_LineTypeDefinition() [3/4]
  
  
      
        
          | Dtk_LineTypeDefinition::Dtk_LineTypeDefinition  | 
          ( | 
          const Dtk_string &  | 
          inName,  | 
         
        
           | 
           | 
          const bool  | 
          inHasBoldSegmentsOnChangeOfDirections,  | 
         
        
           | 
           | 
          const Dtk_Double64 &  | 
          inBoldSegmentsOnChangeOfDirectionsThickness,  | 
         
        
           | 
           | 
          const Dtk_Double64 &  | 
          inBoldSegmentsOnChangeOfDirectionsLength  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ Dtk_LineTypeDefinition() [4/4]
  
  
      
        
          | Dtk_LineTypeDefinition::Dtk_LineTypeDefinition  | 
          ( | 
          const Dtk_FontLineType &  | 
          inClosestAppearanceInFontLineTypeEnumeration | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ~Dtk_LineTypeDefinition()
  
  
      
        
          | virtual Dtk_LineTypeDefinition::~Dtk_LineTypeDefinition  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ _Copy()
◆ _Init()
  
  
      
        
          | void Dtk_LineTypeDefinition::_Init  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ _Reset()
  
  
      
        
          | void Dtk_LineTypeDefinition::_Reset  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ Clone()
  
  
      
        
          | virtual Dtk_Object* Dtk_LineTypeDefinition::Clone  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ Create() [1/3]
Create a Dtk_LineTypeDefinitionPtr without any pattern but only a closest enumeration value. 
- Returns
 - The constructed Dtk_LineTypeDefinitionPtr. 
 
 
 
◆ Create() [2/3]
Create a Dtk_LineTypeDefinitionPtr. 
- Parameters
 - 
  
  
 
- Returns
 - The constructed Dtk_LineTypeDefinitionPtr. 
 
 
 
◆ Create() [3/3]
Create a Dtk_LineTypeDefinitionPtr. 
- Parameters
 - 
  
    | inName | Name of the Dtk_LineTypeDefinition to construct.  | 
    | inHasBoldSegmentsAtEndOfLines | If true, the curves have a specific thickness when there is a change of direction.  | 
    | inBoldSegmentsOnEndOfLinesThickness | Precise the specific thickness if inHasBoldSegmentsAtEndOfLines is true.  | 
    | inBoldSegmentsOnEndOfLinesLength | Precise the specific thickness length if inHasBoldSegmentsAtEndOfLines is true.  | 
  
   
- Returns
 - The constructed Dtk_LineTypeDefinitionPtr. 
 
 
 
◆ DtkDynamicCast()
Performs a dynamic cast - doesn't need RTTI -. 
 
 
◆ DtkDynamicType() [1/2]
Retrieves the dynamic entity type. 
 
 
◆ DtkDynamicType() [2/2]
  
  
      
        
          | virtual int Dtk_Object::DtkDynamicType  | 
          ( | 
          const int &  | 
          inId | ) | 
           | 
         
       
   | 
  
pure virtualinherited   | 
  
 
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, 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, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
 
 
◆ dump()
  
  
      
        
          | virtual void Dtk_Object::dump  | 
          ( | 
          FILE *  | 
          file = stdout | ) | 
           | 
         
       
   | 
  
virtualinherited   | 
  
 
 
◆ GetBoldSegmentsOnChangeOfDirections()
      
        
          | bool Dtk_LineTypeDefinition::GetBoldSegmentsOnChangeOfDirections  | 
          ( | 
          Dtk_Double64 &  | 
          outBoldSegmentsThickness,  | 
        
        
           | 
           | 
          Dtk_Double64 &  | 
          outBoldSegmentsLength  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Get bold segments when curve changes of direction. 
- Returns
 - True if the style has bold segments on change of directions, False if doesn't have those bold segments. 
 
 
 
◆ GetClosestAppearanceInFontLineTypeEnumeration()
      
        
          | Dtk_FontLineType Dtk_LineTypeDefinition::GetClosestAppearanceInFontLineTypeEnumeration  | 
          ( | 
           | ) | 
           const | 
        
      
 
Get what we consider as the closest type in the Dtk_FontLineType enumeration. 
- Attention
 - We recommend not using this function if the integration uses the patterns. As it is not precise, it should only be used for fast integrations that don't uses patterns. 
 
- Returns
 - Dtk_FontLineType::DTK_NO_PATTERN if no enumeration value is considered close. 
 
 
 
◆ GetName()
      
        
          | const Dtk_string& Dtk_LineTypeDefinition::GetName  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns the line type definition name. 
 
 
◆ GetPatternDescriptorDashAtIndex()
Get the length of the segment at index in the pattern. 
- Returns
 - dtkNoError if OK. dtkErrorOutOfRange if index is out of bounds or not of valid type. 
 
 
 
◆ GetPatternDescriptorGapAtIndex()
Get the length of the gap at index in the pattern. 
- Returns
 - dtkNoError if OK. dtkErrorOutOfRange if index is out of bounds or not of valid type. 
 
 
 
◆ GetPatternDescriptorTypeAtIndex()
Get the type of the pattern descriptor at index to call the correct function. 
- Returns
 - dtkNoError if OK. dtkErrorOutOfRange if index is out of bounds. 
 
 
 
◆ GetPatternLength()
      
        
          | Dtk_Size_t Dtk_LineTypeDefinition::GetPatternLength  | 
          ( | 
           | ) | 
           const | 
        
      
 
Get the the number of pattern descriptor. 
 
 
◆ GetSize()
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, 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, Dtk_Point, Dtk_Entity, and Dtk_Info.
 
 
◆ PushBackPatternDescriptorDash()
      
        
          | void Dtk_LineTypeDefinition::PushBackPatternDescriptorDash  | 
          ( | 
          const Dtk_Double64 &  | 
          inDashLength | ) | 
           const | 
        
      
 
Add a new pattern descriptor of type DASH and precise it's length. 
 
 
◆ PushBackPatternDescriptorDot()
      
        
          | void Dtk_LineTypeDefinition::PushBackPatternDescriptorDot  | 
          ( | 
           | ) | 
           const | 
        
      
 
Add a new pattern descriptor of type DOT. 
 
 
◆ PushBackPatternDescriptorGap()
      
        
          | void Dtk_LineTypeDefinition::PushBackPatternDescriptorGap  | 
          ( | 
          const Dtk_Double64 &  | 
          inGapLength | ) | 
           const | 
        
      
 
Add a new pattern descriptor of type GAP and precise it's length. 
 
 
◆ SetClosestAppearanceInFontLineTypeEnumeration()
      
        
          | void Dtk_LineTypeDefinition::SetClosestAppearanceInFontLineTypeEnumeration  | 
          ( | 
          const Dtk_FontLineType &  | 
          inClosestFontLineTypeEnumValue | ) | 
           const | 
        
      
 
Set what can be consider as the closest type in the Dtk_FontLineType enumeration. 
 
 
◆ SetName()
      
        
          | void Dtk_LineTypeDefinition::SetName  | 
          ( | 
          const Dtk_string &  | 
          inName | ) | 
           | 
        
      
 
Set the line type definition name. 
 
 
◆ _Private
  
  
      
        
          | Dtk_Handle* Dtk_LineTypeDefinition::_Private | 
         
       
   | 
  
protected   | 
  
 
 
◆ count_
  
  
      
        
          | unsigned long Dtk_Object::count_ | 
         
       
   | 
  
protectedinherited   |