|
Open CASCADE Technology
6.7.1
|
This class allows the definition a graphic object.
This graphic structure can be displayed,
erased, or highlighted.
This graphic structure can be connected with
another graphic structure.
Keywords: Structure, StructureManager, Display, Erase, Highlight,
UnHighlight, Visible, Priority, Selectable, Visible,
Visual, Connection, Ancestors, Descendants, Transformation
More...
#include <Graphic3d_Structure.hxx>

Public Member Functions | |
| Graphic3d_Structure (const Handle< Graphic3d_StructureManager > &AManager) | |
Creates a graphic object in the manager <AManager>. <br> It will appear in all the views of the visualiser. <br> Warning: The default values AspectLine, AspectFillArea, | |
| virtual 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. More... | |
| virtual void | Destroy () |
| Suppresses the structure <me>. It will be erased at the next screen update. More... | |
| ~Graphic3d_Structure () | |
| virtual void | Display () |
| Displays the structure <me> in all the views of the visualiser. More... | |
| 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. More... | |
| Standard_Integer | DisplayPriority () const |
| Returns the current display priority for the structure <me>. More... | |
| virtual void | Erase () |
| Erases the structure <me> in all the views of the visualiser. More... | |
| void | Highlight (const Aspect_TypeOfHighlightMethod Method) |
Highlights the structure <me> in all the <br> views of the visualiser, using the following methods: <br> | |
| void | Remove () |
Suppress the structure <me>. <br> It will be erased at the next screen update. <br> Warning: No more graphic operations in <me> after this call. | |
| void | SetHighlightColor (const Quantity_Color &AColor) |
| Modifies the highlight color for the Highlight method with the highlight method TOHM_COLOR or TOHM_BOUNDBOX. More... | |
| 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. More... | |
| void | SetDisplayPriority (const Standard_Integer Priority) |
Modifies the order of displaying the structure. <br>
Values are between 0 and 10. <br>
Structures are drawn according to their display priorities <br>
in ascending order. <br>
A structure of priority 10 is displayed the last and appears over the others. <br>
The default value is 5. <br>
Category: Methods to modify the class definition | |
| void | ResetDisplayPriority () |
Reset the current priority of the structure to the <br> previous priority. <br> Category: Methods to modify the class definition | |
| void | SetZLayer (const Standard_Integer theLayerId) |
Set Z layer ID for the structure. The Z layer mechanism <br> allows to display structures presented in higher layers in overlay | |
| Standard_Integer | GetZLayer () const |
Get Z layer ID of displayed structure. The method <br> returns -1 if the structure has no ID (deleted from graphic driver). | |
| void | SetClipPlanes (const Graphic3d_SequenceOfHClipPlane &thePlanes) |
| Changes a sequence of clip planes slicing the structure on rendering. More... | |
| const Graphic3d_SequenceOfHClipPlane & | GetClipPlanes () const |
| Get clip planes slicing the structure on rendering. More... | |
| 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. More... | |
| void | SetPrimitivesAspect (const Handle< Graphic3d_AspectLine3d > &CTX) |
| Modifies the default attributes for lines in the structure <me>. More... | |
| void | SetPrimitivesAspect (const Handle< Graphic3d_AspectFillArea3d > &CTX) |
| Modifies the default attributes for faces in the structure <me>. More... | |
| void | SetPrimitivesAspect (const Handle< Graphic3d_AspectText3d > &CTX) |
| Modifies the default attributes for text in the structure <me>. More... | |
| void | SetPrimitivesAspect (const Handle< Graphic3d_AspectMarker3d > &CTX) |
| Modifies the default attributes for markers in the structure <me>. More... | |
| 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. More... | |
| 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. More... | |
| virtual void | SetVisual (const Graphic3d_TypeOfStructure AVisual) |
| Modifies the visualisation mode for the structure <me>. More... | |
| void | SetZoomLimit (const Standard_Real LimitInf, const Standard_Real LimitSup) |
Modifies the minimum and maximum zoom coefficients <br> for the structure <me>. <br> The default value at the definition of <me> is unlimited. <br> Category: Methods to modify the class definition | |
| void | UnHighlight () |
| Suppresses the highlight for the structure <me> in all the views of the visualiser. More... | |
| virtual void | Compute () |
| virtual Handle_Graphic3d_Structure | Compute (const Handle< Graphic3d_DataStructureManager > &aProjector) |
| Returns the new Structure defined for the new visualization More... | |
| virtual Handle_Graphic3d_Structure | Compute (const Handle< Graphic3d_DataStructureManager > &aProjector, const TColStd_Array2OfReal &AMatrix) |
| Returns the new Structure defined for the new visualization More... | |
| virtual void | Compute (const Handle< Graphic3d_DataStructureManager > &aProjector, Handle< Graphic3d_Structure > &aStructure) |
| Returns the new Structure defined for the new visualization More... | |
| virtual void | Compute (const Handle< Graphic3d_DataStructureManager > &aProjector, const TColStd_Array2OfReal &AMatrix, Handle< Graphic3d_Structure > &aStructure) |
| Returns the new Structure defined for the new visualization More... | |
| void | ReCompute () |
| Forces a new construction of the structure <me> if <me> is displayed and TOS_COMPUTED. More... | |
| void | ReCompute (const Handle< Graphic3d_DataStructureManager > &aProjector) |
| Forces a new construction of the structure <me> if <me> is displayed in <aProjetor> and TOS_COMPUTED. More... | |
| Standard_Boolean | ContainsFacet () const |
| Returns Standard_True if the structure <me> contains Polygons, Triangles or Quadrangles. More... | |
| Handle_Graphic3d_AspectFillArea3d | FillArea3dAspect () const |
| Returns the values of the current default attributes. More... | |
| const Graphic3d_SequenceOfGroup & | Groups () const |
| Returns the groups sequence included in the structure <me> (internal storage). More... | |
| Standard_Integer | NumberOfGroups () const |
| Returns the current number of groups in the structure <me>. More... | |
| Quantity_Color | HighlightColor () const |
| Returns the highlight color for the Highlight method with the highlight method TOHM_COLOR or TOHM_BOUNDBOX. More... | |
| Standard_Boolean | IsDeleted () const |
| Returns Standard_True if the structure <me> is deleted. <me> is deleted after the call Remove (me). More... | |
| virtual Standard_Boolean | IsDisplayed () const |
| Returns the display indicator for the structure <me>. More... | |
| Standard_Boolean | IsEmpty () const |
Returns Standard_True if the structure <me> is empty. <br> Warning: A structure is empty if : | |
| Standard_Boolean | IsInfinite () const |
| Returns Standard_True if the structure <me> is infinite. More... | |
| virtual Standard_Boolean | IsHighlighted () const |
| Returns the highlight indicator for the structure <me>. More... | |
| Standard_Boolean | IsSelectable () const |
| Returns the detectability indicator for the structure <me>. More... | |
| Standard_Boolean | IsRotated () const |
| Returns Standard_True if the structure <me> is rotated. <=> The transformation != Identity, != Scale, != Translation. More... | |
| Standard_Boolean | IsTransformed () const |
| Returns Standard_True if the structure <me> is transformed. <=> The transformation != Identity. More... | |
| Standard_Boolean | IsVisible () const |
| Returns the visibility indicator for the structure <me>. More... | |
| Handle_Graphic3d_AspectLine3d | Line3dAspect () const |
| Returns the values of the current default attributes. More... | |
| Handle_Graphic3d_AspectMarker3d | Marker3dAspect () const |
Returns the current group of graphic attributes used <br> for 3d marker primitives. | |
| 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 <br> of the structure <me>. <br> Warning: If the structure <me> is empty or infinite then : | |
| 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. More... | |
| Handle_Graphic3d_AspectText3d | Text3dAspect () const |
| Returns the values of the current default attributes. More... | |
| Graphic3d_TypeOfStructure | Visual () const |
| Returns the visualisation mode for the structure <me>. More... | |
| void | Ancestors (Graphic3d_MapOfStructure &SG) const |
| Returns the group of structures to which <me> is connected. More... | |
| 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; More... | |
| void | Descendants (Graphic3d_MapOfStructure &SG) const |
| Returns the group of structures connected to <me>. More... | |
| void | Disconnect (const Handle< Graphic3d_Structure > &AStructure) |
| Suppress the connection between <AStructure> and <me>. More... | |
| 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>. More... | |
| void | SetOwner (const Standard_Address Owner) |
| Standard_Address | Owner () const |
| void | SetHLRValidation (const Standard_Boolean AFlag) |
| Standard_Boolean | HLRValidation () const |
| Graphic3d_TypeOfComposition | Composition () const |
| Returns the type of composition applied to matrices of transformation of <me>. More... | |
| void | SetTransform (const TColStd_Array2OfReal &AMatrix, const Graphic3d_TypeOfComposition AType) |
Modifies the current local modelling transformation <br> in the structure <me>. <br> | |
| void | Transform (TColStd_Array2OfReal &AMatrix) const |
| Returns the transformation associated with the structure <me>. More... | |
| void | SetTransformPersistence (const Graphic3d_TransModeFlags &AFlag, const gp_Pnt &APoint) |
| Modifies the current modelling transform persistence (pan, zoom or rotate) More... | |
| void | SetTransformPersistence (const Graphic3d_TransModeFlags &AFlag) |
| Graphic3d_TransModeFlags | TransformPersistenceMode () const |
| Get the current modelling transform persistence (pan, zoom or rotate) More... | |
| gp_Pnt | TransformPersistencePoint () const |
| Get the current point of relative modelling transform persistence More... | |
| Graphic3d_TypeOfStructure | ComputeVisual () const |
| void | GraphicClear (const Standard_Boolean WithDestruction) |
| Clears the structure <me>. More... | |
| void | GraphicConnect (const Handle< Graphic3d_Structure > &ADaughter) |
| void | GraphicDisconnect (const Handle< Graphic3d_Structure > &ADaughter) |
| void | GraphicHighlight (const Aspect_TypeOfHighlightMethod Method) |
| Highlights the structure <me>. More... | |
| void | GraphicTransform (const TColStd_Array2OfReal &AMatrix) |
| void | GraphicUnHighlight () |
| Suppress the highlight for the structure <me>. More... | |
| Standard_Integer | Identification () const |
| Returns the identification number of the structure <me>. More... | |
| virtual void | Plot (const Handle< Graphic3d_Plotter > &aPlotter) |
| 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. More... | |
| void | SetComputeVisual (const Graphic3d_TypeOfStructure AVisual) |
| Graphic3d_CStructure * | CStructure () |
| Returns the c structure associated to <me>. More... | |
Public Member Functions inherited from MMgt_TShared | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. More... | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. More... | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. More... | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More... | |
| virtual | ~Standard_Transient () |
| Destructor must be virtual. More... | |
| virtual void | ShallowDump (Standard_OStream &) const |
| virtual const Handle_Standard_Type & | DynamicType () const |
| Returns a type information object about this object. More... | |
| Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
| Returns a true value if this is an instance of Type. More... | |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More... | |
| Standard_Boolean | IsKind (const Handle_Standard_Type &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| virtual Handle_Standard_Transient | This () const |
| Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
| Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More... | |
Static Public Member Functions | |
| static 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 <br> <AStructure1> and <AStructure2> without a creation <br> of a cycle. <br> | |
| static void | Network (const Handle< Graphic3d_Structure > &AStructure, const Graphic3d_TypeOfConnection AType, Graphic3d_MapOfStructure &ASet) |
| Returns <ASet> the group of structures : More... | |
| static void | PrintNetwork (const Handle< Graphic3d_Structure > &AStructure, const Graphic3d_TypeOfConnection AType) |
| Prints informations about the network associated with the structure <AStructure>. More... | |
| static 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>. More... | |
| static Graphic3d_Vector | Transforms (const TColStd_Array2OfReal &ATrsf, const Graphic3d_Vector &Coord) |
| Transforms <Coord> with the transformation <ATrsf>. More... | |
| static Graphic3d_Vertex | Transforms (const TColStd_Array2OfReal &ATrsf, const Graphic3d_Vertex &Coord) |
| Transforms <Coord> with the transformation <ATrsf>. More... | |
Protected Attributes | |
| Standard_Address | MyPtrStructureManager |
| Standard_Address | MyFirstPtrStructureManager |
| Graphic3d_TypeOfStructure | MyComputeVisual |
This class allows the definition a graphic object.
This graphic structure can be displayed,
erased, or highlighted.
This graphic structure can be connected with
another graphic structure.
Keywords: Structure, StructureManager, Display, Erase, Highlight,
UnHighlight, Visible, Priority, Selectable, Visible,
Visual, Connection, Ancestors, Descendants, Transformation
| Graphic3d_Structure::Graphic3d_Structure | ( | const Handle< Graphic3d_StructureManager > & | AManager | ) |
Creates a graphic object in the manager <AManager>. <br> It will appear in all the views of the visualiser. <br>
Warning: The default values AspectLine, AspectFillArea,
AspectText and AspectMarker are NOT applied to the
structure.
The structure is not displayed when it is created.
|
inline |
|
static |
Returns Standard_True if the connection is possible between <br> <AStructure1> and <AStructure2> without a creation <br> of a cycle. <br>
It's not possible to call the method
AStructure1->Connect (AStructure2, TypeOfConnection)
if
| void Graphic3d_Structure::Ancestors | ( | Graphic3d_MapOfStructure & | SG | ) | const |
Returns the group of structures to which <me> is connected.
|
virtual |
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.
Reimplemented in Prs3d_Presentation.
| Graphic3d_TypeOfComposition Graphic3d_Structure::Composition | ( | ) | const |
Returns the type of composition applied to matrices
of transformation of <me>.
|
virtual |
Reimplemented in PrsMgr_Prs.
|
virtual |
Returns the new Structure defined for the new visualization
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs.
|
virtual |
Returns the new Structure defined for the new visualization
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs.
|
virtual |
Returns the new Structure defined for the new visualization
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs.
|
virtual |
Returns the new Structure defined for the new visualization
Reimplemented in Prs3d_Presentation, and PrsMgr_Prs.
| Graphic3d_TypeOfStructure Graphic3d_Structure::ComputeVisual | ( | ) | const |
| void Graphic3d_Structure::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_Boolean Graphic3d_Structure::ContainsFacet | ( | ) | const |
Returns Standard_True if the structure <me> contains
Polygons, Triangles or Quadrangles.
| Graphic3d_CStructure* Graphic3d_Structure::CStructure | ( | ) |
Returns the c structure associated to <me>.
| void Graphic3d_Structure::Descendants | ( | Graphic3d_MapOfStructure & | SG | ) | const |
Returns the group of structures connected to <me>.
|
virtual |
Suppresses the structure <me>.
It will be erased at the next screen update.
| void Graphic3d_Structure::Disconnect | ( | const Handle< Graphic3d_Structure > & | AStructure | ) |
Suppress the connection between <AStructure> and <me>.
| void Graphic3d_Structure::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>.
|
virtual |
Displays the structure <me> in all the views of
the visualiser.
Reimplemented in Prs3d_Presentation.
| void Graphic3d_Structure::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_Integer Graphic3d_Structure::DisplayPriority | ( | ) | const |
Returns the current display priority for the
structure <me>.
|
virtual |
Erases the structure <me> in all the views
of the visualiser.
| Handle_Graphic3d_AspectFillArea3d Graphic3d_Structure::FillArea3dAspect | ( | ) | const |
Returns the values of the current default attributes.
| const Graphic3d_SequenceOfHClipPlane& Graphic3d_Structure::GetClipPlanes | ( | ) | const |
Get clip planes slicing the structure on rendering.
| Standard_Integer Graphic3d_Structure::GetZLayer | ( | ) | const |
Get Z layer ID of displayed structure. The method <br>
returns -1 if the structure has no ID (deleted from graphic driver).
| void Graphic3d_Structure::GraphicClear | ( | const Standard_Boolean | WithDestruction | ) |
Clears the structure <me>.
| void Graphic3d_Structure::GraphicConnect | ( | const Handle< Graphic3d_Structure > & | ADaughter | ) |
| void Graphic3d_Structure::GraphicDisconnect | ( | const Handle< Graphic3d_Structure > & | ADaughter | ) |
| void Graphic3d_Structure::GraphicHighlight | ( | const Aspect_TypeOfHighlightMethod | Method | ) |
Highlights the structure <me>.
| void Graphic3d_Structure::GraphicTransform | ( | const TColStd_Array2OfReal & | AMatrix | ) |
| void Graphic3d_Structure::GraphicUnHighlight | ( | ) |
Suppress the highlight for the structure <me>.
| const Graphic3d_SequenceOfGroup& Graphic3d_Structure::Groups | ( | ) | const |
Returns the groups sequence included in the structure <me> (internal storage).
| void Graphic3d_Structure::Highlight | ( | const Aspect_TypeOfHighlightMethod | Method | ) |
Highlights the structure <me> in all the <br> views of the visualiser, using the following methods: <br>
TOHM_COLOR = drawn in the highlight color
(default white)
TOHM_BLINK = blinking
TOHM_BOUNDBOX = enclosed by the boundary box
(default white)
| Quantity_Color Graphic3d_Structure::HighlightColor | ( | ) | const |
Returns the highlight color for the Highlight method
with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
| Standard_Boolean Graphic3d_Structure::HLRValidation | ( | ) | const |
| Standard_Integer Graphic3d_Structure::Identification | ( | ) | const |
Returns the identification number of the structure <me>.
| Standard_Boolean Graphic3d_Structure::IsDeleted | ( | ) | const |
Returns Standard_True if the structure <me> is deleted.
<me> is deleted after the call Remove (me).
|
virtual |
Returns the display indicator for the structure <me>.
| Standard_Boolean Graphic3d_Structure::IsEmpty | ( | ) | const |
Returns Standard_True if the structure <me> is empty. <br>
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.
|
virtual |
Returns the highlight indicator for the structure <me>.
| Standard_Boolean Graphic3d_Structure::IsInfinite | ( | ) | const |
Returns Standard_True if the structure <me> is infinite.
| Standard_Boolean Graphic3d_Structure::IsRotated | ( | ) | const |
Returns Standard_True if the structure <me> is rotated.
<=> The transformation != Identity, != Scale, != Translation.
| Standard_Boolean Graphic3d_Structure::IsSelectable | ( | ) | const |
Returns the detectability indicator for the structure <me>.
| Standard_Boolean Graphic3d_Structure::IsTransformed | ( | ) | const |
Returns Standard_True if the structure <me> is transformed.
<=> The transformation != Identity.
| Standard_Boolean Graphic3d_Structure::IsVisible | ( | ) | const |
Returns the visibility indicator for the structure <me>.
| Handle_Graphic3d_AspectLine3d Graphic3d_Structure::Line3dAspect | ( | ) | const |
Returns the values of the current default attributes.
| Handle_Graphic3d_AspectMarker3d Graphic3d_Structure::Marker3dAspect | ( | ) | const |
Returns the current group of graphic attributes used <br>
for 3d marker primitives.
| void Graphic3d_Structure::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 <br> of the structure <me>. <br>
Warning: If the structure <me> is empty or infinite then :
XMin = YMin = ZMin = RealFirst ().
XMax = YMax = ZMax = RealLast ().
|
static |
Returns <ASet> the group of structures :
| Standard_Integer Graphic3d_Structure::NumberOfGroups | ( | ) | const |
Returns the current number of groups in the
structure <me>.
| Standard_Address Graphic3d_Structure::Owner | ( | ) | const |
|
virtual |
| void Graphic3d_Structure::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.
|
static |
Prints informations about the network associated
with the structure <AStructure>.
| void Graphic3d_Structure::ReCompute | ( | ) |
Forces a new construction of the structure <me>
if <me> is displayed and TOS_COMPUTED.
| void Graphic3d_Structure::ReCompute | ( | const Handle< Graphic3d_DataStructureManager > & | aProjector | ) |
Forces a new construction of the structure <me>
if <me> is displayed in <aProjetor> and TOS_COMPUTED.
| void Graphic3d_Structure::Remove | ( | ) |
Suppress the structure <me>. <br> It will be erased at the next screen update. <br>
Warning: No more graphic operations in <me> after this call.
Category: Methods to modify the class definition
| void Graphic3d_Structure::Remove | ( | const Standard_Address | APtr, |
| const Graphic3d_TypeOfConnection | AType | ||
| ) |
Suppress the adress <APtr> in the list
of descendants or in the list of ancestors.
| void Graphic3d_Structure::ResetDisplayPriority | ( | ) |
Reset the current priority of the structure to the <br> previous priority. <br>
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.
| void Graphic3d_Structure::SetClipPlanes | ( | const Graphic3d_SequenceOfHClipPlane & | thePlanes | ) |
Changes a sequence of clip planes slicing the structure on rendering.
| thePlanes | [in] the set of clip planes. |
| void Graphic3d_Structure::SetComputeVisual | ( | const Graphic3d_TypeOfStructure | AVisual | ) |
| void Graphic3d_Structure::SetDisplayPriority | ( | const Standard_Integer | Priority | ) |
Modifies the order of displaying the structure. <br>
Values are between 0 and 10. <br>
Structures are drawn according to their display priorities <br>
in ascending order. <br>
A structure of priority 10 is displayed the last and appears over the others. <br>
The default value is 5. <br>
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.
| void Graphic3d_Structure::SetHighlightColor | ( | const Quantity_Color & | AColor | ) |
Modifies the highlight color for the Highlight method
with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
| void Graphic3d_Structure::SetHLRValidation | ( | const Standard_Boolean | AFlag | ) |
| void Graphic3d_Structure::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.
| void Graphic3d_Structure::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.
| void Graphic3d_Structure::SetOwner | ( | const Standard_Address | Owner | ) |
| void Graphic3d_Structure::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.
| void Graphic3d_Structure::SetPrimitivesAspect | ( | const Handle< Graphic3d_AspectLine3d > & | CTX | ) |
Modifies the default attributes for lines
in the structure <me>.
| void Graphic3d_Structure::SetPrimitivesAspect | ( | const Handle< Graphic3d_AspectFillArea3d > & | CTX | ) |
Modifies the default attributes for faces
in the structure <me>.
| void Graphic3d_Structure::SetPrimitivesAspect | ( | const Handle< Graphic3d_AspectText3d > & | CTX | ) |
Modifies the default attributes for text
in the structure <me>.
| void Graphic3d_Structure::SetPrimitivesAspect | ( | const Handle< Graphic3d_AspectMarker3d > & | CTX | ) |
Modifies the default attributes for markers
in the structure <me>.
| void Graphic3d_Structure::SetTransform | ( | const TColStd_Array2OfReal & | AMatrix, |
| const Graphic3d_TypeOfComposition | AType | ||
| ) |
Modifies the current local modelling transformation <br> in the structure <me>. <br>
It is defined as a 4*4 real matrix.
----------------—
| a11 a12 a13 t1 |
| a21 a22 a23 t2 |
| a31 a32 a33 t3 |
| 0 0 0 1 |
----------------—
TypeOfComposition : TOC_REPLACE
TOC_POSTCONCATENATE
Then the modified Local Modelling Transformation is composed
with the current Global Modelling Transformation to create a
new Composite Modelling Transformation.
The compose type specifies the role of the current local
modelling transformation (L) in composing the new value for
the current local modelling transformation (L'), which is
then combined with the current global modelling transforma-
tion (G) to calculate the new composite modelling transfor-
mation (C).
TOC_REPLACE
The transformation matrix (T) replaces the value of
current local modelling transformation (L).
L' <- T
C <- G x L'
TOC_POSTCONCATENATE
The current local modelling transformation (L) is multiplied
by the transformation matrix (T):
L' <- T x L
C <- G x L'
Category: Methods to manage the structure transformation
Warning: Raises TransformError if the matrix is not a 4x4 matrix.
| void Graphic3d_Structure::SetTransformPersistence | ( | const Graphic3d_TransModeFlags & | AFlag, |
| const gp_Pnt & | APoint | ||
| ) |
Modifies the current modelling transform persistence (pan, zoom or rotate)
| void Graphic3d_Structure::SetTransformPersistence | ( | const Graphic3d_TransModeFlags & | AFlag | ) |
| void Graphic3d_Structure::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.
|
virtual |
Modifies the visualisation mode for the structure <me>.
| void Graphic3d_Structure::SetZLayer | ( | const Standard_Integer | theLayerId | ) |
Set Z layer ID for the structure. The Z layer mechanism <br>
allows to display structures presented in higher layers in overlay
of structures in lower layers by switching off z buffer depth
test between layers
| void Graphic3d_Structure::SetZoomLimit | ( | const Standard_Real | LimitInf, |
| const Standard_Real | LimitSup | ||
| ) |
Modifies the minimum and maximum zoom coefficients <br> for the structure <me>. <br> The default value at the definition of <me> is unlimited. <br>
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.
| Handle_Graphic3d_AspectText3d Graphic3d_Structure::Text3dAspect | ( | ) | const |
Returns the values of the current default attributes.
| void Graphic3d_Structure::Transform | ( | TColStd_Array2OfReal & | AMatrix | ) | const |
Returns the transformation associated with
the structure <me>.
| Graphic3d_TransModeFlags Graphic3d_Structure::TransformPersistenceMode | ( | ) | const |
Get the current modelling transform persistence (pan, zoom or rotate)
| gp_Pnt Graphic3d_Structure::TransformPersistencePoint | ( | ) | const |
Get the current point of relative modelling transform persistence
|
static |
Transforms <X>, <Y>, <Z> with the transformation <ATrsf>.
|
static |
Transforms <Coord> with the transformation <ATrsf>.
|
static |
Transforms <Coord> with the transformation <ATrsf>.
| void Graphic3d_Structure::UnHighlight | ( | ) |
Suppresses the highlight for the structure <me>
in all the views of the visualiser.
| Graphic3d_TypeOfStructure Graphic3d_Structure::Visual | ( | ) | const |
Returns the visualisation mode for the structure <me>.
|
protected |
|
protected |
|
protected |
1.8.5