#include <exotkAF_Document.hxx>
Collaboration diagram for exotkAF_Document:

Public Methods | |
| void * | operator new (size_t, void *anAddress) |
| OCC new. More... | |
| void * | operator new (size_t size) |
| OCC new. More... | |
| void | operator delete (void *anAddress) |
| OCC delete. More... | |
| Standard_EXPORT | exotkAF_Document () |
| Constructor. More... | |
| virtual Standard_EXPORT | ~exotkAF_Document () |
| Destructor. More... | |
| virtual Standard_EXPORT Standard_Boolean | SetActiveView (const Handle_exotkAF_View &aView) |
| Set aView as active. More... | |
| virtual Standard_EXPORT Handle_exotkAF_View | ActiveView () |
| Return the active view. More... | |
| virtual Standard_EXPORT Handle_exotkTree_Tree | Tree () |
| Return the associated tree. More... | |
| virtual Standard_EXPORT void | SetName (const TCollection_AsciiString &aName) |
| Set aName as document name. More... | |
| virtual Standard_EXPORT TCollection_AsciiString | Name () |
| Return the name of the document. More... | |
| virtual Standard_EXPORT Standard_Boolean | Init () |
| Initialize the document. Must be called in the applcation when the document is initialized. More... | |
| virtual Standard_EXPORT Handle_exotkAF_View | CreateView (const Aspect_Handle &anHandle) |
| Create a new Handle_exotkAF_View using anHandle. More... | |
| virtual Standard_EXPORT Standard_Boolean | AddShape (const TopoDS_Shape &aShapeToAdd, const TCollection_AsciiString &aName) |
| Add aShapeToAdd to the document with the name aName. More... | |
| virtual Standard_EXPORT Standard_Boolean | OpenFile (const TCollection_AsciiString &aFilename) |
| Open aFilename, create a shape from the content this file and add it to the document. More... | |
| virtual Standard_EXPORT Standard_Boolean | RemoveView (const Handle_exotkAF_View &aView) |
| Remove aView from the document. More... | |
| virtual Standard_EXPORT Standard_Integer | NbViews () |
| Return the number a views associated with this document. More... | |
| virtual Standard_EXPORT void | InitViewIterator () |
| Initialize the view iterator. More... | |
| virtual Standard_EXPORT Standard_Boolean | MoreViewIterator () |
| Returns true if the iterator is not at its end. More... | |
| virtual Standard_EXPORT void | NextViewIterator () |
| Set the iterator to the next document. More... | |
| virtual Standard_EXPORT Handle_exotkAF_View | CurrentViewIterator () |
| Return the view corresponding to the current iterator. More... | |
| virtual Standard_EXPORT Standard_Boolean | SaveFile (const TCollection_AsciiString &aFilename) |
| Save this document in aFilename. More... | |
| Standard_EXPORT Handle_exotkAIS_DisplayManager | DisplayManager () |
| Return the display manager. More... | |
| Standard_EXPORT const Handle_Standard_Type & | DynamicType () const |
| Type management. More... | |
| Standard_EXPORT Standard_Boolean | IsKind (const Handle_Standard_Type &) const |
| Type management. More... | |
Protected Methods | |
| virtual Standard_EXPORT Standard_Boolean | AddView (const Handle_exotkAF_View &aView) |
| Add aView to the list of known views. Called in exotkAF_Document::CreateView(const Aspect_Handle& anHandle). More... | |
Protected Attributes | |
| Handle_exotkAIS_DisplayManager | myDisplayManager |
| Handle_exotkAF_HSetOfView | myViews |
| Handle_exotkAF_View | myActiveView |
| TCollection_AsciiString | myName |
| Standard_Boolean | myIsInitialized |
| Handle_exotkTree_Tree | myTree |
| Handle_TopTools_HSequenceOfShape | myShapes |
Friends | |
| Standard_EXPORT friend Handle_Standard_Type & | exotkAF_Document_Type_ () |
| Type management. More... | |
Definition at line 72 of file exotkAF_Document.hxx.
|
|
Constructor.
Definition at line 128 of file exotkAF_Document.cxx. References myIsInitialized, and myViews. |
|
|
Destructor.
Definition at line 143 of file exotkAF_Document.cxx. References myViews. |
|
|
Return the active view.
Definition at line 465 of file exotkAF_Document.cxx. References myActiveView. |
|
||||||||||||
|
Add aShapeToAdd to the document with the name aName.
Definition at line 303 of file exotkAF_Document.cxx. References exotkBRepTree::ComputeTopNode(), Init(), myDisplayManager, myShapes, and myTree. Referenced by OpenFile(). |
|
|
Add aView to the list of known views. Called in exotkAF_Document::CreateView(const Aspect_Handle& anHandle).
Definition at line 360 of file exotkAF_Document.cxx. References myViews. Referenced by CreateView(). |
|
|
Create a new Handle_exotkAF_View using anHandle.
Definition at line 334 of file exotkAF_Document.cxx. References AddView(), and myDisplayManager. |
|
|
Return the view corresponding to the current iterator.
Definition at line 421 of file exotkAF_Document.cxx. |
|
|
Return the display manager.
Definition at line 156 of file exotkAF_Document.cxx. References myDisplayManager. |
|
|
Type management.
|
|
|
Initialize the document. Must be called in the applcation when the document is initialized.
Definition at line 205 of file exotkAF_Document.cxx. References exotkAF::Application(), myDisplayManager, myIsInitialized, myShapes, myTree, and exotkTrace_Datas::theRoot. Referenced by AddShape(). |
|
|
Initialize the view iterator.
Definition at line 385 of file exotkAF_Document.cxx. References myViews. |
|
|
Type management.
|
|
|
Returns true if the iterator is not at its end.
Definition at line 397 of file exotkAF_Document.cxx. |
|
|
Return the name of the document.
Definition at line 181 of file exotkAF_Document.cxx. References myName. |
|
|
Return the number a views associated with this document.
Definition at line 433 of file exotkAF_Document.cxx. References myViews. |
|
|
Set the iterator to the next document.
Definition at line 409 of file exotkAF_Document.cxx. |
|
|
Open aFilename, create a shape from the content this file and add it to the document.
Definition at line 231 of file exotkAF_Document.cxx. References AddShape(), exotkTrace::Debug(), exotkTrace::Error(), exotkGUI::HideProgressBox(), exotkDX::LoadShapes(), myName, exotkGUI::SetProgressBoxPosition(), exotkGUI::SetProgressBoxRange(), exotkGUI::SetProgressBoxText(), exotkGUI::SetProgressBoxTitle(), and exotkGUI::ShowProgressBox(). |
|
|
OCC delete.
Definition at line 105 of file exotkAF_Document.hxx. |
|
|
OCC new.
Definition at line 94 of file exotkAF_Document.hxx. |
|
||||||||||||
|
OCC new.
Definition at line 83 of file exotkAF_Document.hxx. |
|
|
Remove aView from the document.
Definition at line 373 of file exotkAF_Document.cxx. References myViews. |
|
|
Save this document in aFilename.
Definition at line 470 of file exotkAF_Document.cxx. References myShapes, and exotkDX::SaveShapes(). |
|
|
Set aView as active.
Definition at line 447 of file exotkAF_Document.cxx. References myActiveView, and myViews. |
|
|
Set aName as document name.
Definition at line 169 of file exotkAF_Document.cxx. References myName. |
|
|
Return the associated tree.
Definition at line 194 of file exotkAF_Document.cxx. References myTree. |
|
|
Type management.
|
|
|
the active view Definition at line 289 of file exotkAF_Document.hxx. Referenced by ActiveView(), and SetActiveView(). |
|
|
the display manager Definition at line 283 of file exotkAF_Document.hxx. Referenced by AddShape(), CreateView(), DisplayManager(), and Init(). |
|
|
true if the document is initialized Definition at line 295 of file exotkAF_Document.hxx. Referenced by exotkAF_Document(), and Init(). |
|
|
the document name Definition at line 292 of file exotkAF_Document.hxx. |
|
|
the shapes Definition at line 301 of file exotkAF_Document.hxx. |
|
|
the tree associated to the document Definition at line 298 of file exotkAF_Document.hxx. |
|
|
the set of views associated to this document Definition at line 286 of file exotkAF_Document.hxx. Referenced by AddView(), exotkAF_Document(), InitViewIterator(), NbViews(), RemoveView(), SetActiveView(), and ~exotkAF_Document(). |
1.2.12 written by Dimitri van Heesch,
© 1997-2001