Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

TPrsStd_AISPresentation Class Reference

#include <TPrsStd_AISPresentation.hxx>

Inheritance diagram for TPrsStd_AISPresentation:

TDF_Attribute MMgt_TShared Standard_Transient

List of all members.


Detailed Description

An attribute to associate an
AIS_InteractiveObject to a label in an AIS viewer.
This attribute works in collaboration with TPrsStd_AISViewer.
Note that all the Set... and Unset... attribute
methods as well as the query methods for
visualization attributes and the HasOwn... test
methods are shortcuts to the respective
AIS_InteractiveObject settings.

Definition at line 82 of file TPrsStd_AISPresentation.hxx.


Public Member Functions

Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)&other) const
virtual Standard_EXPORT void AfterAddition ()
 Something to do after adding an Attribute to a label.
.
virtual Standard_EXPORT void AfterResume ()
virtual Standard_EXPORT
Standard_Boolean 
AfterRetrieval (const Standard_Boolean forceIt=Standard_False)
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 void Backup ()
virtual Standard_EXPORT
Handle_TDF_Attribute 
BackupCopy () const
virtual Standard_EXPORT void BeforeCommitTransaction ()
virtual Standard_EXPORT void BeforeForget ()
virtual Standard_EXPORT void BeforeRemoval ()
virtual Standard_EXPORT
Standard_Boolean 
BeforeUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False)
Standard_EXPORT
Quantity_NameOfColor 
Color () const
virtual Standard_EXPORT void Delete () const
 Memory deallocator for transient classes.
virtual Standard_EXPORT
Handle_TDF_DeltaOnAddition 
DeltaOnAddition () const
virtual Standard_EXPORT
Handle_TDF_DeltaOnForget 
DeltaOnForget () const
virtual Standard_EXPORT void DeltaOnModification (const Handle(TDF_DeltaOnModification)&aDelta)
 Applies a DeltaOnModification to <me>.
.
virtual Standard_EXPORT
Handle_TDF_DeltaOnModification 
DeltaOnModification (const Handle(TDF_Attribute)&anOldAttribute) const
virtual Standard_EXPORT
Handle_TDF_DeltaOnRemoval 
DeltaOnRemoval () const
virtual Standard_EXPORT
Handle_TDF_DeltaOnResume 
DeltaOnResume () const
Standard_EXPORT void Display (const Standard_Boolean update=Standard_False)
virtual Standard_EXPORT
Standard_OStream & 
Dump (Standard_OStream &anOS) const
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
Standard_EXPORT void Erase (const Standard_Boolean remove=Standard_False)
virtual Standard_EXPORT void ExtendedDump (Standard_OStream &anOS, const TDF_IDFilter &aFilter, TDF_AttributeIndexedMap &aMap) const
Standard_EXPORT Standard_Boolean FindAttribute (const Standard_GUID &anID, Handle(TDF_Attribute)&anAttribute) const
Standard_EXPORT void Forget (const Standard_Integer aTransaction)
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren=Standard_True) const
Standard_EXPORT Standard_Boolean ForgetAttribute (const Standard_GUID &aguid) const
Standard_EXPORT
Handle_AIS_InteractiveObject 
GetAIS () const
 Returns AIS_InteractiveObject stored in the presentation attribute
.
Standard_EXPORT Standard_GUID GetDriverGUID () const
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
Standard_EXPORT Standard_Boolean HasOwnColor () const
 Returns true if this presentation attribute already has a color setting.
.
Standard_EXPORT Standard_Boolean HasOwnMaterial () const
 Returns true if this presentation attribute already has a material setting.
.
Standard_EXPORT Standard_Boolean HasOwnMode () const
Standard_EXPORT Standard_Boolean HasOwnSelectionMode () const
Standard_EXPORT Standard_Boolean HasOwnTransparency () const
 Returns true if this presentation attribute already has a transparency setting.
.
Standard_EXPORT Standard_Boolean HasOwnWidth () const
 Returns true if this presentation attribute already has a width setting.
.
Standard_EXPORT const
Standard_GUID & 
ID () const
Standard_EXPORT Standard_Boolean IsAttribute (const Standard_GUID &anID) const
Standard_Boolean IsBackuped () const
Standard_EXPORT Standard_Boolean IsDisplayed () const
 Returns true if this AIS presentation attribute is displayed.
.
Standard_Boolean IsForgotten () const
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_Boolean IsNew () const
Standard_Boolean IsValid () const
Standard_EXPORT const TDF_Label Label () const
Standard_EXPORT
Graphic3d_NameOfMaterial 
Material () const
 Returns the material setting for this presentation attribute.
.
Standard_EXPORT Standard_Integer Mode () const
Standard_EXPORT
Handle_TDF_Attribute 
NewEmpty () const
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
Standard_OStream & operator<< (Standard_OStream &anOS) const
Standard_EXPORT void Paste (const Handle(TDF_Attribute)&into, const Handle(TDF_RelocationTable)&RT) const
virtual Standard_EXPORT void References (const Handle(TDF_DataSet)&aDataSet) const
Standard_EXPORT void Restore (const Handle(TDF_Attribute)&with)
Standard_EXPORT Standard_Integer SelectionMode () const
Standard_EXPORT void SetColor (const Quantity_NameOfColor aColor)
 Sets the color aColor for this presentation attribute.
.
Standard_EXPORT void SetDisplayed (const Standard_Boolean B)
Standard_EXPORT void SetDriverGUID (const Standard_GUID &guid)
Standard_EXPORT void SetMaterial (const Graphic3d_NameOfMaterial aName)
 Sets the material aName for this presentation attribute.
.
Standard_EXPORT void SetMode (const Standard_Integer theMode)
Standard_EXPORT void SetSelectionMode (const Standard_Integer theSelectionMode)
Standard_EXPORT void SetTransparency (const Standard_Real aValue=0.6)
Standard_EXPORT void SetWidth (const Standard_Real aWidth)
 Sets the width aWidth for this presentation attribute.
.
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
Standard_Integer Transaction () const
Standard_EXPORT Standard_Real Transparency () const
Standard_EXPORT void UnsetColor ()
 Removes the color setting from this presentation attribute.
.
Standard_EXPORT void UnsetMaterial ()
 Removes the material setting from this presentation attribute.
.
Standard_EXPORT void UnsetMode ()
Standard_EXPORT void UnsetSelectionMode ()
Standard_EXPORT void UnsetTransparency ()
 Removes the transparency setting from this presentation attribute.
.
Standard_EXPORT void UnsetWidth ()
 Removes the width setting from this presentation attribute.
.
Standard_EXPORT Standard_Integer UntilTransaction () const
Standard_EXPORT void Update ()
 Recompute presentation of object and apply the visualization settings
.
Standard_EXPORT Standard_Real Width () 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 Handle(TDF_Attribute)&master)
static Standard_EXPORT
Handle_TPrsStd_AISPresentation 
Set (const TDF_Label &L, const Standard_GUID &driver)
static Standard_EXPORT void Unset (const TDF_Label &L)
 Delete (if exist) the presentation attribute associated to the label <L>.
.

Private Member Functions

Standard_EXPORT void AISDisplay ()
 Displays AIS_InteractiveObject stored in the attribute
.
Standard_EXPORT void AISErase (const Standard_Boolean remove=Standard_False)
Standard_EXPORT void AISUpdate ()

Private Attributes

Standard_Boolean hasOwnColor
Standard_Boolean hasOwnMaterial
Standard_Boolean hasOwnMode
Standard_Boolean hasOwnSelectionMode
Standard_Boolean hasOwnTransparency
Standard_Boolean hasOwnWidth
Standard_Boolean isDisplayed
Handle_AIS_InteractiveObject myAIS
Quantity_NameOfColor myColor
Standard_GUID myDriverGUID
Graphic3d_NameOfMaterial myMaterial
Standard_Integer myMode
Standard_Integer mySelectionMode
Standard_Real myTransparency
Standard_Real myWidth

Friends

class TDF_AttributeIterator
class TDF_Data
class TDF_DeltaOnForget
class TDF_Label
class TDF_LabelNode

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index