Open CASCADE Technology
6.5.4
|
The groundwork to define an interactive viewer attribute.
This attribute stores an interactive context at the root label.
You can only have one instance of this class per data framework.
#include <TPrsStd_AISViewer.hxx>
Public Member Functions | |
TPrsStd_AISViewer () | |
void | Update () const |
Updates the viewer at the label access. access is the root of the data framework. | |
void | SetInteractiveContext (const Handle< AIS_InteractiveContext > &ctx) |
Sets the interactive context ctx for this attribute. | |
Handle_AIS_InteractiveContext | GetInteractiveContext () const |
Returns the interactive context in this attribute. | |
const Standard_GUID & | ID () const |
Returns the ID of the attribute. | |
void | Restore (const Handle< TDF_Attribute > &with) |
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction. | |
Handle_TDF_Attribute | NewEmpty () const |
Returns an new empty attribute from the good end type. It is used by the copy algorithm. | |
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. | |
Static Public Member Functions | |
static const Standard_GUID & | GetID () |
class methods ============= | |
static Standard_Boolean | Has (const TDF_Label &acces) |
returns True if there is an AISViewer attribute in <acces> Data Framework. | |
static Handle_TPrsStd_AISViewer | New (const TDF_Label &access, const Handle< AIS_InteractiveContext > &selector) |
create and set an AISViewer at. Raise an exception if Has. | |
static Handle_TPrsStd_AISViewer | New (const TDF_Label &acces, const Handle< V3d_Viewer > &viewer) |
create and set an AISAttribute at root label. The interactive context is build. Raise an exception if Has. | |
static Standard_Boolean | Find (const TDF_Label &acces, Handle< TPrsStd_AISViewer > &A) |
Finds the viewer attribute at the label access, the root of the data framework. Calling this function can be used to initialize an AIS viewer | |
static Standard_Boolean | Find (const TDF_Label &acces, Handle< AIS_InteractiveContext > &IC) |
static Standard_Boolean | Find (const TDF_Label &acces, Handle< V3d_Viewer > &V) |
static void | Update (const TDF_Label &acces) |
AISViewer methods ================= |
static Standard_Boolean TPrsStd_AISViewer::Find | ( | const TDF_Label & | acces, |
Handle< TPrsStd_AISViewer > & | A | ||
) | [static] |
static Standard_Boolean TPrsStd_AISViewer::Find | ( | const TDF_Label & | acces, |
Handle< AIS_InteractiveContext > & | IC | ||
) | [static] |
static Standard_Boolean TPrsStd_AISViewer::Find | ( | const TDF_Label & | acces, |
Handle< V3d_Viewer > & | V | ||
) | [static] |
static const Standard_GUID& TPrsStd_AISViewer::GetID | ( | ) | [static] |
Handle_AIS_InteractiveContext TPrsStd_AISViewer::GetInteractiveContext | ( | ) | const |
static Standard_Boolean TPrsStd_AISViewer::Has | ( | const TDF_Label & | acces | ) | [static] |
const Standard_GUID& TPrsStd_AISViewer::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
static Handle_TPrsStd_AISViewer TPrsStd_AISViewer::New | ( | const TDF_Label & | access, |
const Handle< AIS_InteractiveContext > & | selector | ||
) | [static] |
static Handle_TPrsStd_AISViewer TPrsStd_AISViewer::New | ( | const TDF_Label & | acces, |
const Handle< V3d_Viewer > & | viewer | ||
) | [static] |
Handle_TDF_Attribute TPrsStd_AISViewer::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
void TPrsStd_AISViewer::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
const Handle< TDF_RelocationTable > & | aRelocationTable | ||
) | const [virtual] |
Implements TDF_Attribute.
void TPrsStd_AISViewer::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
static void TPrsStd_AISViewer::Update | ( | const TDF_Label & | acces | ) | [static] |
void TPrsStd_AISViewer::Update | ( | ) | const |