#include <Graphic3d_Structure.hxx>
Inheritance diagram for Graphic3d_Structure:
Public Member Functions | |
Standard_EXPORT | Graphic3d_Structure (const Handle(Graphic3d_StructureManager)&AManager) |
Creates a graphic object in the manager <amanager>. It will appear in all the views of the visualiser. Warning: The default values AspectLine, AspectFillArea, AspectText and AspectMarker are NOT applied to the structure. The structure is not displayed when it is created. . | |
virtual Standard_EXPORT void | Clear (const Standard_Boolean WithDestruction=Standard_True) |
if WithDestruction == Standard_True then suppress all the groups of primitives in the structure. and it is mandatory to create a new group in <me>. if WithDestruction == Standard_False then clears all the groups of primitives in the structure. and all the groups are conserved and empty. They will be erased at the next screen update. The structure itself is conserved. The transformation and the attributes of <me> are conserved. The childs of <me> are conserved. | |
virtual Standard_EXPORT void | Destroy () |
Suppresses the structure <me>. It will be erased at the next screen update. . | |
~Graphic3d_Structure () | |
virtual Standard_EXPORT void | Display () |
Displays the structure <me> in all the views of the visualiser. . | |
Standard_EXPORT void | Display (const Standard_Integer Priority) |
Displays the structure <me> in all the views of the visualiser, while modifying its current priority. Note: Display Priorities Structure display priorities control the order in which structures are redrawn. When you display a structure, you specify its priority. The lower the value, the lower the display priority. When the display is regenerated, the structures with the lowest priority are drawn first. For structures with the same display priority, the order in which they were displayed determines the drawing order. Open CASCADE supports 11 structure display priorities, 0 to 10. Warning: Raises PriorityDefinitionError if <priority> is greater than 10 or a negative value. . | |
Standard_EXPORT Standard_Integer | DisplayPriority () const |
Returns the current display priority for the structure <me>. . | |
virtual Standard_EXPORT void | Erase () |
Erases the structure <me> in all the views of the visualiser. . | |
Standard_EXPORT void | Highlight (const Aspect_TypeOfHighlightMethod Method) |
Highlights the structure <me> in all the views of the visualiser, using the following methods: . | |
Standard_EXPORT void | Remove () |
Suppress the structure <me>. It will be erased at the next screen update. Warning: No more graphic operations in <me> after this call. Category: Methods to modify the class definition . | |
Standard_EXPORT void | SetHighlightColor (const Quantity_Color &AColor) |
Modifies the highlight color for the Highlight method with the highlight method TOHM_COLOR or TOHM_BOUNDBOX. . | |
Standard_EXPORT void | SetInfiniteState (const Standard_Boolean AFlag) |
Modifies the coordinates of the boundary box of the structure <me>. if <aflag> is Standard_True then <me> is infinite and the MinMaxValues method or the MinMaxCoord method return : XMin = YMin = ZMin = RealFirst (). XMax = YMax = ZMax = RealLast (). By default, <me> is not infinite but empty. . | |
Standard_EXPORT void | SetDisplayPriority (const Standard_Integer Priority) |
Modifies the order of displaying the structure. Values are between 0 et 10. The priority 10 being displayed first. The default value is 5 Category: Methods to modify the class definition Warning: If <me> is displayed then the SetDisplayPriority method erase <me> and display <me> with the new priority. Raises PriorityDefinitionError if <priority> is greater than 10 or a negative value. . | |
Standard_EXPORT void | ResetDisplayPriority () |
Reset the current priority of the structure to the previous priority. Category: Methods to modify the class definition Warning: If <me> is displayed then the SetDisplayPriority method erase <me> and display <me> with the previous priority. . | |
Standard_EXPORT void | SetPick (const Standard_Boolean AValue) |
Modifies the detectability indicator to Standard_True or Standard_False for the structure <me>. The default value at the definition of <me> is Standard_True. . | |
Standard_EXPORT void | SetPrimitivesAspect (const Handle(Graphic3d_AspectLine3d)&CTX) |
Modifies the default attributes for lines in the structure <me>. . | |
Standard_EXPORT void | SetPrimitivesAspect (const Handle(Graphic3d_AspectFillArea3d)&CTX) |
Modifies the default attributes for faces in the structure <me>. . | |
Standard_EXPORT void | SetPrimitivesAspect (const Handle(Graphic3d_AspectText3d)&CTX) |
Modifies the default attributes for text in the structure <me>. . | |
Standard_EXPORT void | SetPrimitivesAspect (const Handle(Graphic3d_AspectMarker3d)&CTX) |
Modifies the default attributes for markers in the structure <me>. . | |
Standard_EXPORT void | SetVisible (const Standard_Boolean AValue) |
Modifies the visibility indicator to Standard_True or Standard_False for the structure <me>. The default value at the definition of <me> is Standard_True. . | |
Standard_EXPORT void | SetManager (const Handle(Graphic3d_StructureManager)&AManager, const Standard_Boolean WithPropagation=Standard_False) |
Moves the graphic object <me> in the manager <amanager>. If <withpropagation> is Standard_True then all the connected graphic objects to <me> are moved. . | |
virtual Standard_EXPORT void | SetVisual (const Graphic3d_TypeOfStructure AVisual) |
Modifies the visualisation mode for the structure <me>. . | |
Standard_EXPORT void | SetZoomLimit (const Standard_Real LimitInf, const Standard_Real LimitSup) |
Modifies the minimum and maximum zoom coefficients for the structure <me>. The default value at the definition of <me> is unlimited. Category: Methods to modify the class definition Warning: Raises StructureDefinitionError if <limitinf> is greater than <limitsup> or if <limitinf> or <limitsup> is a negative value. . | |
Standard_EXPORT void | UnHighlight () |
Suppresses the highlight for the structure <me> in all the views of the visualiser. . | |
virtual Standard_EXPORT Handle_Graphic3d_Structure | Compute (const Handle(Graphic3d_DataStructureManager)&aProjector) |
Returns the new Structure defined for the new visualization . | |
virtual Standard_EXPORT Handle_Graphic3d_Structure | Compute (const Handle(Graphic3d_DataStructureManager)&aProjector, const TColStd_Array2OfReal &AMatrix) |
Returns the new Structure defined for the new visualization . | |
virtual Standard_EXPORT void | Compute (const Handle(Graphic3d_DataStructureManager)&aProjector, Handle(Graphic3d_Structure)&aStructure) |
Returns the new Structure defined for the new visualization . | |
virtual Standard_EXPORT void | Compute (const Handle(Graphic3d_DataStructureManager)&aProjector, const TColStd_Array2OfReal &AMatrix, Handle(Graphic3d_Structure)&aStructure) |
Returns the new Structure defined for the new visualization . | |
Standard_EXPORT void | ReCompute () |
Forces a new construction of the structure <me> if <me> is displayed and TOS_COMPUTED. . | |
Standard_EXPORT void | ReCompute (const Handle(Graphic3d_DataStructureManager)&aProjector) |
Forces a new construction of the structure <me> if <me> is displayed in <aprojetor> and TOS_COMPUTED. . | |
Standard_EXPORT Standard_Boolean | ContainsFacet () const |
Returns Standard_True if the structure <me> contains Polygons, Triangles or Quadrangles. . | |
Standard_EXPORT Standard_Boolean | Exploration (const Standard_Integer ElementNumber, Graphic3d_VertexNC &AVertex, Graphic3d_Vector &AVector) const |
Explores a structure element of <me>. Returns Standard_True if the exploration succeded and Standard_False if the exploration is done or if the specified structure element is not in the structure. <avertex> contains the coordinates, the normal and the color of the vertex found in the structure element. <avector> contains the normal of the face. Warning: - The structure element number is given by Visual3d_ViewManager::Pick method. - The primitive type is given by Graphic3d_Structure::Type method. - The normal is (0.0, 0.0, 0.0) when the normal is not specified in the structure element. - The color is (0.0, 0.0, 0.0) when the color is not specified in the structure element. - To initialize the exploration, you have to call the Graphic3d_Structure::Type method before this method. . | |
Standard_EXPORT Handle_Graphic3d_AspectFillArea3d | FillArea3dAspect () const |
Returns the values of the current default attributes. . | |
Standard_EXPORT Handle_Graphic3d_HSetOfGroup | Groups () const |
Returns the set of groups included in the structure <me>. . | |
Standard_EXPORT Standard_Integer | NumberOfGroups () const |
Returns the current number of groups in the structure <me>. . | |
Standard_EXPORT Quantity_Color | HighlightColor () const |
Returns the highlight color for the Highlight method with the highlight method TOHM_COLOR or TOHM_BOUNDBOX. . | |
Standard_EXPORT Standard_Boolean | IsDeleted () const |
Returns Standard_True if the structure <me> is deleted. <me> is deleted after the call Remove (me). . | |
virtual Standard_EXPORT Standard_Boolean | IsDisplayed () const |
Returns the display indicator for the structure <me>. . | |
Standard_EXPORT Standard_Boolean | IsEmpty () const |
Returns Standard_True if the structure <me> is empty. Warning: A structure is empty if : it do not have group or all the groups are empties and it do not have descendant or all the descendants are empties. . | |
Standard_EXPORT Standard_Boolean | IsInfinite () const |
Returns Standard_True if the structure <me> is infinite. . | |
virtual Standard_EXPORT Standard_Boolean | IsHighlighted () const |
Returns the highlight indicator for the structure <me>. . | |
Standard_EXPORT Standard_Boolean | IsSelectable () const |
Returns the detectability indicator for the structure <me>. . | |
Standard_EXPORT Standard_Boolean | IsRotated () const |
Returns Standard_True if the structure <me> is rotated. <=> The transformation != Identity, != Scale, != Translation. . | |
Standard_EXPORT Standard_Boolean | IsTransformed () const |
Returns Standard_True if the structure <me> is transformed. <=> The transformation != Identity. . | |
Standard_EXPORT Standard_Boolean | IsVisible () const |
Returns the visibility indicator for the structure <me>. . | |
Standard_EXPORT Handle_Graphic3d_AspectLine3d | Line3dAspect () const |
Returns the values of the current default attributes. . | |
Standard_EXPORT Handle_Graphic3d_AspectMarker3d | Marker3dAspect () const |
Returns the current group of graphic attributes used for 3d marker primitives. . | |
Standard_EXPORT void | MinMaxValues (Standard_Real &XMin, Standard_Real &YMin, Standard_Real &ZMin, Standard_Real &XMax, Standard_Real &YMax, Standard_Real &ZMax) const |
Returns the coordinates of the boundary box of the structure <me>. Warning: If the structure <me> is empty or infinite then : XMin = YMin = ZMin = RealFirst (). XMax = YMax = ZMax = RealLast (). . | |
Standard_EXPORT void | PrimitivesAspect (Handle(Graphic3d_AspectLine3d)&CTXL, Handle(Graphic3d_AspectText3d)&CTXT, Handle(Graphic3d_AspectMarker3d)&CTXM, Handle(Graphic3d_AspectFillArea3d)&CTXF) const |
Returns the current values of the default attributes. . | |
Standard_EXPORT Handle_Graphic3d_AspectText3d | Text3dAspect () const |
Returns the values of the current default attributes. . | |
Standard_EXPORT Graphic3d_TypeOfPrimitive | Type (const Standard_Integer ElementNumber) const |
Returns the primitive type stored in the structure element <elementnumber>. Initialises the exploration of this primitive. If the structure element is not a primitive, returns Graphic3d_TOP_UNDEFINED. Warning: The structure element number is given by Visual3d_ViewManager::Pick method. . | |
Standard_EXPORT Graphic3d_TypeOfStructure | Visual () const |
Returns the visualisation mode for the structure <me>. . | |
Standard_EXPORT void | Ancestors (Graphic3d_MapOfStructure &SG) const |
Returns the group of structures to which <me> is connected. . | |
Standard_EXPORT void | Connect (const Handle(Graphic3d_Structure)&AStructure, const Graphic3d_TypeOfConnection AType, const Standard_Boolean WithCheck=Standard_False) |
If Atype is TOC_DESCENDANT then add <astructure> as a child structure of <me>. If Atype is TOC_ANCESTOR then add <astructure> as a parent structure of <me>. The connection propagates Display, Highlight, Erase, Remove, and stacks the transformations. No connection if the graph of the structures contains a cycle and <withcheck> is Standard_True; . | |
Standard_EXPORT void | Descendants (Graphic3d_MapOfStructure &SG) const |
Returns the group of structures connected to <me>. . | |
Standard_EXPORT void | Disconnect (const Handle(Graphic3d_Structure)&AStructure) |
Suppress the connection between <astructure> and <me>. . | |
Standard_EXPORT void | DisconnectAll (const Graphic3d_TypeOfConnection AType) |
If Atype is TOC_DESCENDANT then suppress all the connections with the child structures of <me>. If Atype is TOC_ANCESTOR then suppress all the connections with the parent structures of <me>. . | |
Standard_EXPORT void | SetOwner (const Standard_Address Owner) |
Standard_EXPORT Standard_Address | Owner () const |
Standard_EXPORT void | SetHLRValidation (const Standard_Boolean AFlag) |
Standard_EXPORT Standard_Boolean | HLRValidation () const |
Standard_EXPORT Graphic3d_TypeOfComposition | Composition () const |
Returns the type of composition applied to matrices of transformation of <me>. . | |
Standard_EXPORT void | SetTransform (const TColStd_Array2OfReal &AMatrix, const Graphic3d_TypeOfComposition AType) |
Modifies the current local modelling transformation in the structure <me>. . | |
Standard_EXPORT void | Transform (TColStd_Array2OfReal &AMatrix) const |
Returns the transformation associated with the structure <me>. . | |
Standard_EXPORT void | SetTransformPersistence (const Graphic3d_TransModeFlags &AFlag, const gp_Pnt &APoint) |
Modifies the current modelling transform persistence (pan, zoom or rotate) . | |
Standard_EXPORT void | SetTransformPersistence (const Graphic3d_TransModeFlags &AFlag) |
Standard_EXPORT Graphic3d_TransModeFlags | TransformPersistenceMode () const |
Get the current modelling transform persistence (pan, zoom or rotate) . | |
Standard_EXPORT gp_Pnt | TransformPersistencePoint () const |
Get the current point of relative modelling transform persistence . | |
Standard_EXPORT Graphic3d_TypeOfStructure | ComputeVisual () const |
Standard_EXPORT void | Exploration () const |
Prints informations about the structure <me>. . | |
Standard_EXPORT void | GraphicClear (const Standard_Boolean WithDestruction) |
Clears the structure <me>. . | |
Standard_EXPORT void | GraphicConnect (const Handle(Graphic3d_Structure)&ADaughter) |
Standard_EXPORT void | GraphicDisconnect (const Handle(Graphic3d_Structure)&ADaughter) |
Standard_EXPORT void | GraphicHighlight (const Aspect_TypeOfHighlightMethod Method) |
Highlights the structure <me>. . | |
Standard_EXPORT void | GraphicTransform (const TColStd_Array2OfReal &AMatrix) |
Standard_EXPORT void | GraphicUnHighlight () |
Suppress the highlight for the structure <me>. . | |
Standard_EXPORT Standard_Integer | Identification () const |
Returns the identification number of the structure <me>. . | |
virtual Standard_EXPORT void | Plot (const Handle(Graphic3d_Plotter)&aPlotter) |
Standard_EXPORT void | Remove (const Standard_Address APtr, const Graphic3d_TypeOfConnection AType) |
Suppress the adress <aptr> in the list of descendants or in the list of ancestors. . | |
Standard_EXPORT void | SetComputeVisual (const Graphic3d_TypeOfStructure AVisual) |
Standard_EXPORT Standard_Address | CStructure () const |
Returns the c structure associated to <me>. . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Static Public Member Functions | |
static Standard_EXPORT Standard_Boolean | AcceptConnection (const Handle(Graphic3d_Structure)&AStructure1, const Handle(Graphic3d_Structure)&AStructure2, const Graphic3d_TypeOfConnection AType) |
Returns Standard_True if the connection is possible between <astructure1> and <astructure2> without a creation of a cycle. . | |
static Standard_EXPORT void | Network (const Handle(Graphic3d_Structure)&AStructure, const Graphic3d_TypeOfConnection AType, Graphic3d_MapOfStructure &ASet) |
Returns <aset> the group of structures : - directly or indirectly connected to <astructure> if the TypeOfConnection == TOC_DESCENDANT - to which <astructure> is directly or indirectly connected if the TypeOfConnection == TOC_ANCESTOR . | |
static Standard_EXPORT void | PrintNetwork (const Handle(Graphic3d_Structure)&AStructure, const Graphic3d_TypeOfConnection AType) |
Prints informations about the network associated with the structure <astructure>. . | |
static Standard_EXPORT void | Transforms (const TColStd_Array2OfReal &ATrsf, const Standard_Real X, const Standard_Real Y, const Standard_Real Z, Standard_Real &NewX, Standard_Real &NewY, Standard_Real &NewZ) |
Transforms <x>, <y>, <z> with the transformation <atrsf>. . | |
static Standard_EXPORT Graphic3d_Vector | Transforms (const TColStd_Array2OfReal &ATrsf, const Graphic3d_Vector &Coord) |
Transforms <coord> with the transformation <atrsf>. . | |
static Standard_EXPORT Graphic3d_Vertex | Transforms (const TColStd_Array2OfReal &ATrsf, const Graphic3d_Vertex &Coord) |
Transforms <coord> with the transformation <atrsf>. . | |
Protected Attributes | |
Standard_Address | MyPtrStructureManager |
Standard_Address | MyFirstPtrStructureManager |
Graphic3d_TypeOfStructure | MyComputeVisual |
Private Member Functions | |
Standard_EXPORT void | Add (const Handle(Graphic3d_Group)&AGroup) |
Inserts in the structure <me>, the group <g>. It will be erased at the next screen update. . | |
Standard_EXPORT void | GroupsWithFacet (const Standard_Integer ADelta) |
Manages the number of groups in the structure <me> which contains facet. Polygons, Triangles or Quadrangles. <adelta> = +1 or -1 . | |
Standard_EXPORT void | GroupLabels (Standard_Integer &LB, Standard_Integer &LE) |
Returns the labels for a new group in the structure <me>. . | |
Standard_EXPORT void | MinMaxCoord (Standard_Real &XMin, Standard_Real &YMin, Standard_Real &ZMin, Standard_Real &XMax, Standard_Real &YMax, Standard_Real &ZMax) const |
Returns the extreme coordinates found in the structure <me>. Warning: If the structure <me> is empty or infinite then : XMin = YMin = ZMin = RealFirst (). XMax = YMax = ZMax = RealLast (). . | |
Standard_EXPORT void | Remove (const Handle(Graphic3d_Group)&AGroup) |
Suppress in the structure <me>, the group <agroup>. It will be erased at the next screen update. . | |
Standard_EXPORT Handle_Graphic3d_StructureManager | StructureManager () const |
Returns the manager to which <me> is associated. . | |
Standard_EXPORT void | Update () const |
Calls the Update method of the StructureManager which contains the Structure <me>. . | |
Standard_EXPORT void | UpdateStructure (const Handle(Graphic3d_AspectLine3d)&CTXL, const Handle(Graphic3d_AspectText3d)&CTXT, const Handle(Graphic3d_AspectMarker3d)&CTXM, const Handle(Graphic3d_AspectFillArea3d)&CTXF) |
Updates the c structure associated to <me>. . | |
Private Attributes | |
Graphic3d_CStructure | MyCStructure |
Aspect_GenId | MyGroupGenId |
Graphic3d_SequenceOfAddress | MyAncestors |
Graphic3d_SequenceOfAddress | MyDescendants |
Graphic3d_SequenceOfGroup | MyGroups |
Handle_Graphic3d_GraphicDriver | MyGraphicDriver |
Quantity_Color | MyHighlightColor |
Aspect_TypeOfHighlightMethod | MyHighlightMethod |
Standard_Address | MyOwner |
Graphic3d_TypeOfStructure | MyVisual |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Prs3d_Presentation. |
|
|
|
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs. |
|
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs. |
|
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs. |
|
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Prs3d_Presentation. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Prs3d_Presentation, PrsMgr_Prs, and StdSelect_Prs. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|