#include <TPrsStd_AISPresentation.hxx>
Inheritance diagram for TPrsStd_AISPresentation:

Public Member Functions | |
| Standard_EXPORT | TPrsStd_AISPresentation () |
| Standard_EXPORT void | SetDisplayed (const Standard_Boolean B) |
| Standard_EXPORT void | Display (const Standard_Boolean update=Standard_False) |
| Display presentation of object in AIS viewer. If <update> = True then AISObject is recomputed and all the visualization settings are applied . | |
| Standard_EXPORT void | Erase (const Standard_Boolean remove=Standard_False) |
| Removes the presentation of this AIS presentation attribute from the TPrsStd_AISViewer. If remove is true, this AIS presentation attribute is removed from the interactive context. . | |
| Standard_EXPORT void | Update () |
| Recompute presentation of object and apply the visualization settings . | |
| Standard_EXPORT Standard_GUID | GetDriverGUID () const |
| Standard_EXPORT void | SetDriverGUID (const Standard_GUID &guid) |
| Standard_EXPORT Standard_Boolean | IsDisplayed () const |
| Returns true if this AIS presentation attribute is displayed. . | |
| Standard_EXPORT Handle_AIS_InteractiveObject | GetAIS () const |
| Returns AIS_InteractiveObject stored in the presentation attribute . | |
| Standard_EXPORT Graphic3d_NameOfMaterial | Material () const |
| Returns the material setting for this presentation attribute. . | |
| Standard_EXPORT void | SetMaterial (const Graphic3d_NameOfMaterial aName) |
| Sets the material aName for this presentation attribute. . | |
| Standard_EXPORT Standard_Boolean | HasOwnMaterial () const |
| Returns true if this presentation attribute already has a material setting. . | |
| Standard_EXPORT void | UnsetMaterial () |
| Removes the material setting from this presentation attribute. . | |
| Standard_EXPORT void | SetTransparency (const Standard_Real aValue=0.6) |
| Sets the transparency value aValue for this presentation attribute. This value is 0.6 by default. . | |
| Standard_EXPORT Standard_Real | Transparency () const |
| Standard_EXPORT Standard_Boolean | HasOwnTransparency () const |
| Returns true if this presentation attribute already has a transparency setting. . | |
| Standard_EXPORT void | UnsetTransparency () |
| Removes the transparency setting from this presentation attribute. . | |
| Standard_EXPORT Quantity_NameOfColor | Color () const |
| Standard_EXPORT void | SetColor (const Quantity_NameOfColor aColor) |
| Sets the color aColor for this presentation attribute. . | |
| Standard_EXPORT Standard_Boolean | HasOwnColor () const |
| Returns true if this presentation attribute already has a color setting. . | |
| Standard_EXPORT void | UnsetColor () |
| Removes the color setting from this presentation attribute. . | |
| Standard_EXPORT Standard_Real | Width () const |
| Standard_EXPORT void | SetWidth (const Standard_Real aWidth) |
| Sets the width aWidth for this presentation attribute. . | |
| Standard_EXPORT Standard_Boolean | HasOwnWidth () const |
| Returns true if this presentation attribute already has a width setting. . | |
| Standard_EXPORT void | UnsetWidth () |
| Removes the width setting from this presentation attribute. . | |
| Standard_EXPORT Standard_Integer | Mode () const |
| Standard_EXPORT void | SetMode (const Standard_Integer theMode) |
| Standard_EXPORT Standard_Boolean | HasOwnMode () const |
| Standard_EXPORT void | UnsetMode () |
| Standard_EXPORT Standard_Integer | SelectionMode () const |
| Standard_EXPORT void | SetSelectionMode (const Standard_Integer theSelectionMode) |
| Standard_EXPORT Standard_Boolean | HasOwnSelectionMode () const |
| Standard_EXPORT void | UnsetSelectionMode () |
| Standard_EXPORT const Standard_GUID & | ID () const |
| Returns the ID of the attribute. . | |
| Standard_EXPORT Handle_TDF_Attribute | NewEmpty () const |
| Returns an new empty attribute from the good end type. It is used by the copy algorithm. . | |
| Standard_EXPORT void | Restore (const Handle(TDF_Attribute)&with) |
| Restores the backuped contents from <anattribute> into this one. It is used when aborting a transaction. . | |
| Standard_EXPORT void | Paste (const Handle(TDF_Attribute)&into, const Handle(TDF_RelocationTable)&RT) const |
| This method is different from the "Copy" one, because it is used when copying an attribute from a source structure into a target structure. This method may paste the contents of <me> into <intoattribute>. The given pasted attribute can be full or empty of its contents. But don't make a NEW! Just set the contents! It is possible to use <arelocationtable> to get/set the relocation value of a source attribute. . | |
| virtual Standard_EXPORT Handle_TDF_Attribute | BackupCopy () const |
| Copies the attribute contents into a new other attribute. It is used by Backup(). . | |
| virtual Standard_EXPORT void | AfterAddition () |
| Something to do after adding an Attribute to a label. . | |
| virtual Standard_EXPORT void | BeforeRemoval () |
| Something to do before removing an Attribute from a label. . | |
| virtual Standard_EXPORT void | BeforeForget () |
| Something to do before forgetting an Attribute to a label. . | |
| virtual Standard_EXPORT void | AfterResume () |
| Something to do after resuming an Attribute from a label. . | |
| virtual Standard_EXPORT Standard_Boolean | BeforeUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False) |
| Something to do before applying <anattdelta>. The returned status says if AfterUndo has been performed (true) or if this callback must be called once again further (false). If <forceit> is set to true, the method MUST perform and return true. Does nothing by default and returns true. . | |
| virtual Standard_EXPORT Standard_Boolean | AfterUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False) |
| update AIS viewer according to delta | |
| Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Static Public Member Functions | |
| static Standard_EXPORT const Standard_GUID & | GetID () |
| Returns the GUID for TPrsStd_AISPresentation attributes. . | |
| static Standard_EXPORT Handle_TPrsStd_AISPresentation | Set (const TDF_Label &L, const Standard_GUID &driver) |
| Creates or retrieves the presentation attribute on the label L, and sets the GUID driver. . | |
| static Standard_EXPORT void | Unset (const TDF_Label &L) |
| Delete (if exist) the presentation attribute associated to the label <l>. . | |
| static Standard_EXPORT Handle_TPrsStd_AISPresentation | Set (const Handle(TDF_Attribute)&master) |
| Creates or retrieves the AISPresentation attribute attached to master. The GUID of the driver will be the GUID of master. master is the attribute you want to display. . | |
Private Member Functions | |
| Standard_EXPORT void | AISUpdate () |
| Updates AIS_InteractiveObject stored in the attribute and applies the visualization settings . | |
| Standard_EXPORT void | AISDisplay () |
| Displays AIS_InteractiveObject stored in the attribute . | |
| Standard_EXPORT void | AISErase (const Standard_Boolean remove=Standard_False) |
| Erases AIS_InteractiveObject stored in the attribute in the viewer; If <remove> = True then AISObject is removed from AIS_InteractiveContext instead of simple erasing in the viewer . | |
Private Attributes | |
| Standard_GUID | myDriverGUID |
| Standard_Real | myTransparency |
| Quantity_NameOfColor | myColor |
| Graphic3d_NameOfMaterial | myMaterial |
| Standard_Real | myWidth |
| Standard_Integer | myMode |
| Standard_Integer | mySelectionMode |
| Standard_Boolean | isDisplayed |
| Standard_Boolean | hasOwnColor |
| Standard_Boolean | hasOwnMaterial |
| Standard_Boolean | hasOwnTransparency |
| Standard_Boolean | hasOwnWidth |
| Standard_Boolean | hasOwnMode |
| Standard_Boolean | hasOwnSelectionMode |
| Handle_AIS_InteractiveObject | myAIS |
|
|
|
|
|
Reimplemented from TDF_Attribute. |
|
|
Reimplemented from TDF_Attribute. |
|
||||||||||||
|
Reimplemented from TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from TDF_Attribute. |
|
|
Reimplemented from TDF_Attribute. |
|
|
Reimplemented from TDF_Attribute. |
|
||||||||||||
|
Reimplemented from TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
Implements TDF_Attribute. |
|
||||||||||||
|
Implements TDF_Attribute. |
|
|
Implements TDF_Attribute. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.1