Represents the tables. More...
Inheritance diagram for Dtk_Table: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... | |
| Dtk_Size_t & | Cell_Col (const Dtk_Size_t inPos) |
| Sets the number of cells of the ith columns. More... | |
| const Dtk_Size_t & | Cell_Col (const Dtk_Size_t inPos) const |
| Gets the number of cells in each column. More... | |
| Dtk_Size_t & | Cell_Line (const Dtk_Size_t inPos) |
| Sets the number of cells of the (i)th line. More... | |
| const Dtk_Size_t & | Cell_Line (const Dtk_Size_t inPos) const |
| Gets the number of cells in each line. 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_OneCell & | getCell (const Dtk_Size_t &inRow, const Dtk_Size_t &inCol) |
| const Dtk_OneCell & | getCell (const Dtk_Size_t &inRow, const Dtk_Size_t &inCol) const |
| const Dtk_ID & | GetID () const |
| Get Internal UniqueID. 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_Size_t | getNbcols () |
| Gets the number of colums in Dtk_Table. More... | |
| Dtk_Size_t | getNbrows () |
| Gets the number of rows in Dtk_Table. More... | |
| Dtk_Size_t | GetNumCols () const |
| Gets the Dtk_Table columns number. More... | |
| Dtk_Size_t | GetNumLeaders () const |
| Retrieves the number of leaders. More... | |
| Dtk_Size_t | GetNumRows () const |
| Gets the Dtk_Table rows number. 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_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 () |
| Dtk_ErrorStatus | ProcessTextsPlacement () |
| Processes internal annotation placement - internal use only -. More... | |
| virtual Dtk_ErrorStatus | Reverse () |
| Reverses the Dtk_Annotation. More... | |
| void | Set_Texts (const Dtk_Size_t &inRowIdx, const Dtk_Size_t &inColIdx, Dtk_CompositeText inText) |
| Sets the (inRowIdx,inColIdx)th text. 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... | |
| Dtk_ErrorStatus | SetRotationAngle (const Dtk_Double64 &inRotationAngle) |
| Sets the annotation angle using the annotation base. More... | |
| Dtk_CompositeText & | Text (const Dtk_Size_t &inRow, const Dtk_Size_t &inCol) |
| const Dtk_CompositeText & | Text (const Dtk_Size_t &inRow, const Dtk_Size_t &inCol) const |
| Gets the (i,j)th text - get/set -. More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
| Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
| static Dtk_TablePtr | Create (const Dtk_Int32 &inNumRows, const Dtk_Int32 &inNumCols, const Dtk_pnt &inLocationPnt=Dtk_pnt(0, 0, 0), const Dtk_Double64 &inAngle=0.0, const Dtk_InfoPtr &infos=NULL, Dtk_tab< Dtk_LeaderPtr > inLeadersArray=Dtk_tab< Dtk_LeaderPtr >(), const Dtk_Double64 &inOffSet=0.0, const Dtk_anchor_type &inAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_justication_type &inJustificationType=DTK_JUSTIFY_LEFT) |
| Calls full featured constructor to allocate a new object. More... | |
| static Dtk_TablePtr | Create (const Dtk_Table &in) |
| CreateCopy{in}. More... | |
| static Dtk_Table * | 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_TABLE } |
Protected Member Functions | |
| void | _CheckRowCol (const Dtk_Size_t inRow, const Dtk_Size_t inCol) const |
| void | _Copy (const Dtk_2dEntity &s) |
| void | _copy (const Dtk_Entity &s) |
| void | _init () |
| void | _reset () |
| virtual Dtk_Object * | Clone () |
| Dtk_Table () | |
| Default constructor. More... | |
| Dtk_Table (const Dtk_Int32 &inNumRows, const Dtk_Int32 &inNumCols, const Dtk_pnt &inLocationPnt=Dtk_pnt(0, 0, 0), const Dtk_Double64 &inAngle=0.0, const Dtk_InfoPtr &infos=NULL, Dtk_tab< Dtk_LeaderPtr > inLeadersArray=Dtk_tab< Dtk_LeaderPtr >(), const Dtk_Double64 &inOffSet=0.0, const Dtk_anchor_type &inAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_justication_type &inJustificationType=DTK_JUSTIFY_LEFT) | |
| Dtk_Table (const Dtk_Table &tab) | |
| Dtk_OneCell * | operator[] (const Dtk_Size_t &inPos) |
| const Dtk_OneCell * | operator[] (const Dtk_Size_t &inPos) const |
| ~Dtk_Table () | |
| Destructor. More... | |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
| Dtk_tab< Dtk_Size_t > | nbCells_Col |
| number of cells on each column (if we consider mergers) More... | |
| Dtk_tab< Dtk_Size_t > | nbCells_Line |
| number of cells on each line (if we consider mergers) More... | |
| Dtk_Size_t | nbCol |
| Number of columns. More... | |
| Dtk_Size_t | nbRows |
| Number of lines. More... | |
| Dtk_OneCell ** | tableOfCell |
| A table of cells. More... | |
Represents the tables.
nbCells_Line : number of cells on each line (if we consider mergers).
nbCells_Col : number of cells on each column (if we consider mergers).
Example:
|
protected |
Default constructor.
|
protected |
|
protected |
|
protected |
Destructor.
|
protected |
|
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 |
| Dtk_Size_t& Dtk_Table::Cell_Col | ( | const Dtk_Size_t | inPos | ) |
Sets the number of cells of the ith columns.
| i | Column number |
| inNewVal | The new number witch represents the number of cell of the ith Column |
| const Dtk_Size_t& Dtk_Table::Cell_Col | ( | const Dtk_Size_t | inPos | ) | const |
Gets the number of cells in each column.
| Dtk_Size_t& Dtk_Table::Cell_Line | ( | const Dtk_Size_t | inPos | ) |
Sets the number of cells of the (i)th line.
| i | Line number |
| inNewVal | The new number witch represents the number of cell of the ith row |
| const Dtk_Size_t& Dtk_Table::Cell_Line | ( | const Dtk_Size_t | inPos | ) | const |
Gets the number of cells in each line.
|
protectedvirtual |
Implements Dtk_Annotation.
|
static |
Calls full featured constructor to allocate a new object.
| inNumRows | Rows number in the Dtk_Table |
| inNumCols | Columns number in the Dtk_Table |
| inLocationPnt | The Dtk_Table location |
| inAngle | Angle |
| inInfos | Dtk_Table infos |
| inLeadersArray | Leaders array |
| inOffSet | Offset |
| inAnchorType | Dtk_Table anchor type |
| inJustificationType | Justification type |
|
static |
CreateCopy{in}.
|
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_OneCell& Dtk_Table::getCell | ( | const Dtk_Size_t & | inRow, |
| const Dtk_Size_t & | inCol | ||
| ) |
| inRow | Line number |
| inCol | Column number |
| const Dtk_OneCell& Dtk_Table::getCell | ( | const Dtk_Size_t & | inRow, |
| const Dtk_Size_t & | inCol | ||
| ) | const |
|
inherited |
Get Internal UniqueID.
|
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_Size_t Dtk_Table::getNbcols | ( | ) |
Gets the number of colums in Dtk_Table.
| Dtk_Size_t Dtk_Table::getNbrows | ( | ) |
Gets the number of rows in Dtk_Table.
| Dtk_Size_t Dtk_Table::GetNumCols | ( | ) | const |
Gets the Dtk_Table columns number.
|
inherited |
Retrieves the number of leaders.
| Dtk_Size_t Dtk_Table::GetNumRows | ( | ) | const |
Gets the Dtk_Table rows number.
|
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.
|
inherited |
Get the X Axis - read only -.
|
inherited |
Get the Y Axis - read only -.
|
inherited |
|
protected |
|
protected |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
| Dtk_ErrorStatus Dtk_Table::ProcessTextsPlacement | ( | ) |
Processes internal annotation placement - internal use only -.
|
virtualinherited |
Reverses the Dtk_Annotation.
Reimplemented in Dtk_DatumTarget.
| void Dtk_Table::Set_Texts | ( | const Dtk_Size_t & | inRowIdx, |
| const Dtk_Size_t & | inColIdx, | ||
| Dtk_CompositeText | inText | ||
| ) |
Sets the (inRowIdx,inColIdx)th text.
| inRowIdx | Line index - 0 based - |
| inColIdx | column index - 0 based - |
| inText | Text be put. |
|
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.
|
virtual |
Sets the annotation angle using the annotation base.
| inRotationAngle | The rotation angle to be set |
Reimplemented from Dtk_Annotation.
| Dtk_CompositeText& Dtk_Table::Text | ( | const Dtk_Size_t & | inRow, |
| const Dtk_Size_t & | inCol | ||
| ) |
| const Dtk_CompositeText& Dtk_Table::Text | ( | const Dtk_Size_t & | inRow, |
| const Dtk_Size_t & | inCol | ||
| ) | const |
Gets the (i,j)th text - get/set -.
| inRow | Text row index - 0 based - |
| inCol | Text column index - 0 based - |
|
virtual |
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. |
Implements Dtk_Annotation.
|
protectedinherited |
|
protectedinherited |
|
protected |
number of cells on each column (if we consider mergers)
|
protected |
number of cells on each line (if we consider mergers)
|
protected |
Number of columns.
|
protected |
Number of lines.
|
protected |
A table of cells.