QoccDocument Class Reference

This class provides a base object for "proxy" OpenCascade objects, and a set of starter files for new classes. More...

#include <qoccdocument.h>

List of all members.

Public Member Functions

 QoccDocument (const Handle(TDocStd_Document)&aDoc, int anID=0)
 ~QoccDocument ()
 Handle (TDocStd_Document)&getDocument()
int id ()
 Handle (TPrsStd_AISPresentation) RegisterPresentation(Handle(GEOM_Object) TheGeomObject)
bool RemovePresentation (Handle(GEOM_Object) TheGeomObject)
void undo ()
void redo ()
void UpdatePresentations (TDF_Label theRoot)
void SetDocumentAndID (Handle(TDocStd_Document) aDocument, int anID)

Private Member Functions

 Handle (TDocStd_Document) myDocument

Private Attributes

int myID


Detailed Description

This class provides a base object for "proxy" OpenCascade objects, and a set of starter files for new classes.

Author:
Peter C. Dolbey

Definition at line 34 of file qoccdocument.h.


Constructor & Destructor Documentation

QoccDocument::QoccDocument ( const Handle(TDocStd_Document)&  aDoc,
int  anID = 0 
)

Definition at line 43 of file qoccdocument.cpp.

References myID.

QoccDocument::~QoccDocument (  ) 

Definition at line 49 of file qoccdocument.cpp.


Member Function Documentation

QoccDocument::Handle ( TDocStd_Document   )  [private]

QoccDocument::Handle ( TPrsStd_AISPresentation   ) 

QoccDocument::Handle ( TDocStd_Document   )  [inline]

Definition at line 44 of file qoccdocument.h.

Referenced by RemovePresentation(), and UpdatePresentations().

Here is the caller graph for this function:

int QoccDocument::id (  )  [inline]

Definition at line 46 of file qoccdocument.h.

Referenced by QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), QoccCmdCircle2Pt::clickEvent(), QoccCmdLine2Pt::moveEvent(), QoccCmdCircle2Pt::moveEvent(), QoccMainWindow::QoccMainWindow(), QoccApplication::Redo(), QoccApplication::ResetDocument(), QoccApplication::SaveDocumentAs(), and QoccApplication::Undo().

Here is the caller graph for this function:

void QoccDocument::redo (  ) 

Definition at line 58 of file qoccdocument.cpp.

References qGeomApp.

Referenced by QoccController::redo().

Here is the caller graph for this function:

bool QoccDocument::RemovePresentation ( Handle(GEOM_Object)  TheGeomObject  ) 

Definition at line 71 of file qoccdocument.cpp.

References Handle(), and RESULT_LABEL.

Referenced by QoccCmdLine2Pt::clickEvent(), QoccCmdCircle2Pt::clickEvent(), QoccCmdLine2Pt::moveEvent(), QoccCmdCircle2Pt::moveEvent(), QoccMainWindow::QoccMainWindow(), QoccCmdCircle2Pt::~QoccCmdCircle2Pt(), and QoccCmdLine2Pt::~QoccCmdLine2Pt().

Here is the call graph for this function:

Here is the caller graph for this function:

void QoccDocument::SetDocumentAndID ( Handle(TDocStd_Document)  aDocument,
int  anID 
)

Definition at line 136 of file qoccdocument.cpp.

References myID.

Referenced by QoccApplication::ResetDocument().

Here is the caller graph for this function:

void QoccDocument::undo (  ) 

Definition at line 53 of file qoccdocument.cpp.

References qGeomApp.

Referenced by QoccController::undo().

Here is the caller graph for this function:

void QoccDocument::UpdatePresentations ( TDF_Label  theRoot  ) 

Definition at line 86 of file qoccdocument.cpp.

References Handle(), and RESULT_LABEL.

Referenced by QoccApplication::LoadDocument().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int QoccDocument::myID [private]

Definition at line 59 of file qoccdocument.h.

Referenced by QoccDocument(), and SetDocumentAndID().


The documentation for this class was generated from the following files:
Generated on Sat Feb 23 21:22:29 2008 for QtGEOM by  doxygen 1.4.7