This is the Document Class.
The Dtk_MainDocPtr object is used as root element produced by a translation.
It contains the root Dtk_ComponentPtr.
More...
Public Member Functions | |
Dtk_ComponentPtr | CreateCatalogDtk_Component (Dtk_string inComponentFullPath, Dtk_string inComponentName, Dtk_string inInstanceName, const Dtk_transfo &inTransformationMatrix, const DtkReaderType &inAssociatedModule=UnknownModule, const Dtk_Component::ComponentAvailabilityEnum &inAvailability=Dtk_Component::ComponentInternal, Dtk_string inOriginalName=Dtk_string()) |
Creates a Catalog Dtk_ComponentPtr. More... | |
Dtk_ComponentPtr | CreateInstanceDtk_Component (const Dtk_ComponentPtr &inPrototype, Dtk_string inInstanceName, const Dtk_transfo &inTransformationMatrix) |
Creates a physical Dtk_ComponentPtr. More... | |
Dtk_ComponentPtr | CreatePrototypeDtk_Component (Dtk_string inComponentFullPath, Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, const Dtk_Component::ComponentAvailabilityEnum &inAvailability, const int inAdditionnalReferenceFlag=0, Dtk_string inOriginalName=Dtk_string()) |
Creates a Prototype Dtk_ComponentPtr. This type handles Assemblies and part components. More... | |
Dtk_ComponentPtr | CreateVirtualDtk_Component (Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, Dtk_string inComponentFullPath, const Dtk_Component::ComponentAvailabilityEnum &inAvailability) |
Creates a virtual Dtk_ComponentPtr. More... | |
Dtk_ErrorStatus | DevalidateComponent (const Dtk_ComponentID &inComponentID) |
Devalidates Component into MainDoc. More... | |
Dtk_Int32 | DtkDynamicType (const int &inId) |
Retrieves the dynamic entity type. More... | |
virtual void | dump (FILE *file=stdout) |
Dtk_ErrorStatus | GetAdditionalReferenceList (Dtk_tab< Dtk_string > &outFileList) const |
return list of additional reference files into MainDoc. More... | |
Dtk_ComponentPtr | GetComponentByID (const Dtk_ComponentID &inComponentID) const |
Retrieves a Dtk_ComponentPtr giving its ID. More... | |
Dtk_ComponentPtr | GetFatherComponent (const Dtk_ComponentPtr &inComponent, Dtk_Size_t inIndex) const |
Retrieves the inIndexth father of the giving Dtk_ComponentPtr. More... | |
Dtk_ErrorStatus | GetMissingComponentList (Dtk_tab< Dtk_string > &outFileList) const |
return list of missing files into MainDoc. More... | |
Dtk_Size_t | GetNumComponents () const |
Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar). More... | |
Dtk_Size_t | GetNumFatherComponent (const Dtk_ComponentPtr &inComponent) |
Retrieves the inIndexth father of the giving Dtk_ComponentPtr. More... | |
Dtk_Int32 | GetNumInstances () const |
Give number of InstanceComponents in the Dtk_MainDoc. More... | |
virtual Dtk_Size_t | GetSize () const |
const Dtk_ComponentPtr & | RootComponent () const |
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc. More... | |
void | SetRootComponent (const Dtk_ComponentPtr &inRootComponent) |
Set the root Dtk_ComponentPtr. More... | |
Static Public Member Functions | |
static Dtk_MainDocPtr | Create () |
Base constructor. More... | |
static Dtk_MainDoc * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_DOCUMENT } |
Protected Member Functions | |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _ReleaseComponents () |
void | _ReleaseNodeConnectors () |
void | _reset () |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_API |
class | Dtk_MainDocWrapper |
class | Dtk_SmartPtr< Dtk_MainDoc > |
This is the Document Class.
The Dtk_MainDocPtr object is used as root element produced by a translation.
It contains the root Dtk_ComponentPtr.
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
static |
Base constructor.
Dtk_ComponentPtr Dtk_MainDoc::CreateCatalogDtk_Component | ( | Dtk_string | inComponentFullPath, |
Dtk_string | inComponentName, | ||
Dtk_string | inInstanceName, | ||
const Dtk_transfo & | inTransformationMatrix, | ||
const DtkReaderType & | inAssociatedModule = UnknownModule , |
||
const Dtk_Component::ComponentAvailabilityEnum & | inAvailability = Dtk_Component::ComponentInternal , |
||
Dtk_string | inOriginalName = Dtk_string() |
||
) |
Creates a Catalog Dtk_ComponentPtr.
inComponentFullPath | Component full path. |
inComponentName | Component name. |
inInstanceName | Instance name. |
inTransformationMatrix | Transformation matrix. |
inAssociatedModule | Associated module - Unknown by default -. |
Dtk_ComponentPtr Dtk_MainDoc::CreateInstanceDtk_Component | ( | const Dtk_ComponentPtr & | inPrototype, |
Dtk_string | inInstanceName, | ||
const Dtk_transfo & | inTransformationMatrix | ||
) |
Creates a physical Dtk_ComponentPtr.
inComponentType | Component type - Part or Assembly -. |
inComponentFullPath | Component full path. |
inComponentName | Component name. |
inInstanceName | Instance name. |
inTransformationMatrix | Transformation matrix. |
inAssociatedModule | Associated module - Unknown by default -. |
Creates an Instance Dtk_ComponentPtr.
inPrototype | The Prototype Dtk_ComponentPtr used to create instance. |
inInstanceName | Instance name. |
inTransformationMatrix | Transformation matrix. |
Dtk_ComponentPtr Dtk_MainDoc::CreatePrototypeDtk_Component | ( | Dtk_string | inComponentFullPath, |
Dtk_string | inComponentName, | ||
const DtkReaderType & | inAssociatedModule, | ||
const Dtk_Component::ComponentAvailabilityEnum & | inAvailability, | ||
const int | inAdditionnalReferenceFlag = 0 , |
||
Dtk_string | inOriginalName = Dtk_string() |
||
) |
Creates a Prototype Dtk_ComponentPtr. This type handles Assemblies and part components.
inComponentFullPath | Component full path. |
inComponentName | Component name. |
inAssociatedModule | Associated module - Unknown by default -. |
inAvailability | : Is component found/missing or internal |
inAdditionnalReferenceFlag | : Is component an additionnal reference ( not part of assembly) or not |
Dtk_ComponentPtr Dtk_MainDoc::CreateVirtualDtk_Component | ( | Dtk_string | inComponentName, |
const DtkReaderType & | inAssociatedModule, | ||
Dtk_string | inComponentFullPath, | ||
const Dtk_Component::ComponentAvailabilityEnum & | inAvailability | ||
) |
Creates a virtual Dtk_ComponentPtr.
inComponentName | Component name. |
inAssociatedModule | Associated module - Unknown by default -. |
Dtk_ErrorStatus Dtk_MainDoc::DevalidateComponent | ( | const Dtk_ComponentID & | inComponentID | ) |
Devalidates Component into MainDoc.
inComponentID | The ComponentID to devalidate. |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
|
virtual |
Retrieves the dynamic entity type.
Implements Dtk_Object.
|
virtualinherited |
Dtk_ErrorStatus Dtk_MainDoc::GetAdditionalReferenceList | ( | Dtk_tab< Dtk_string > & | outFileList | ) | const |
return list of additional reference files into MainDoc.
outFileList | : list of additionnal reference files |
Dtk_ComponentPtr Dtk_MainDoc::GetComponentByID | ( | const Dtk_ComponentID & | inComponentID | ) | const |
Retrieves a Dtk_ComponentPtr giving its ID.
inComponentID | The component ID |
Dtk_ComponentPtr Dtk_MainDoc::GetFatherComponent | ( | const Dtk_ComponentPtr & | inComponent, |
Dtk_Size_t | inIndex | ||
) | const |
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
inComponent | The component from which we want the father. |
inIndex | index of father wanted. |
Dtk_ErrorStatus Dtk_MainDoc::GetMissingComponentList | ( | Dtk_tab< Dtk_string > & | outFileList | ) | const |
return list of missing files into MainDoc.
outFileList | : list of missing files |
Dtk_Size_t Dtk_MainDoc::GetNumComponents | ( | ) | const |
Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar).
Dtk_Size_t Dtk_MainDoc::GetNumFatherComponent | ( | const Dtk_ComponentPtr & | inComponent | ) |
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
inComponent | The component from which we want the number of fathers. |
Dtk_Int32 Dtk_MainDoc::GetNumInstances | ( | ) | const |
Give number of InstanceComponents in the Dtk_MainDoc.
|
virtualinherited |
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.
const Dtk_ComponentPtr& Dtk_MainDoc::RootComponent | ( | ) | const |
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.
void Dtk_MainDoc::SetRootComponent | ( | const Dtk_ComponentPtr & | inRootComponent | ) |
Set the root Dtk_ComponentPtr.
inRootComponent | The root Ccomponent |
|
friend |
|
friend |
|
friend |
|
protected |
|
protectedinherited |