Version: 6.3.1
Data Structures | Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions | Private Attributes | Friends

GEOM_Object Class Reference

#include <GEOM_Object.hxx>

Inheritance diagram for GEOM_Object:
Inheritance graph

Data Structures

struct  Color

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
Standard_EXPORT Standard_Boolean IsKind (const Handle(Standard_Type)&AType) const
Standard_EXPORT GEOM_Object (TDF_Label &theEntry, int theType)
Standard_EXPORT ~GEOM_Object ()
Standard_EXPORT Handle (TDataStd_TreeNode) GetRootNode()
Standard_EXPORT TDF_Label GetEntry ()
Standard_EXPORT int GetType ()
Standard_EXPORT void SetType (int theType)
Standard_EXPORT int GetTic ()
Standard_EXPORT void SetTic (int theTic)
Standard_EXPORT void IncrementTic ()
Standard_EXPORT int GetDocID ()
Standard_EXPORT TopoDS_Shape GetValue ()
Standard_EXPORT void SetName (const char *theName)
Standard_EXPORT char * GetName ()
Standard_EXPORT void SetColor (const Color &theColor)
Standard_EXPORT Color GetColor ()
Standard_EXPORT void SetAutoColor (bool theAutoColor)
Standard_EXPORT bool GetAutoColor ()
Standard_EXPORT void SetMarkerStd (const Aspect_TypeOfMarker theType, double theSize)
Standard_EXPORT void SetMarkerTexture (int theTextureId)
Standard_EXPORT Aspect_TypeOfMarker GetMarkerType ()
Standard_EXPORT double GetMarkerSize ()
Standard_EXPORT int GetMarkerTexture ()
Standard_EXPORT void UnsetMarker ()
Standard_EXPORT void SetAuxData (const char *theData)
Standard_EXPORT
TCollection_AsciiString 
GetAuxData ()
Standard_EXPORT void SetParameters (const TCollection_AsciiString &theParameters)
Standard_EXPORT
TCollection_AsciiString 
GetParameters () const
Standard_EXPORT bool IsMainShape ()
Standard_EXPORT void SetIOR (TCollection_AsciiString &theIOR)
Standard_EXPORT
TCollection_AsciiString 
GetIOR ()
Standard_EXPORT Handle (GEOM_Function) AddFunction(const Standard_GUID &theGUID
Standard_EXPORT int GetNbFunctions ()
Standard_EXPORT Handle (GEOM_Function) GetFunction(int theFunctionNumber)
Standard_EXPORT Handle (GEOM_Function) GetLastFunction()
Standard_EXPORT Handle (TColStd_HSequenceOfTransient) GetAllDependency()
Standard_EXPORT Handle (TColStd_HSequenceOfTransient) GetLastDependency()
Standard_EXPORT TDF_Label GetFreeLabel ()

Static Public Member Functions

static Standard_EXPORT Handle (GEOM_Object) GetObject(TDF_Label &theLabel)
static Standard_EXPORT Handle (GEOM_Object) GetReferencedObject(TDF_Label &theLabel)
static Standard_EXPORT const
Standard_GUID & 
GetObjectID ()
static Standard_EXPORT const
Standard_GUID & 
GetSubShapeID ()

Data Fields

Standard_EXPORT int theFunctionType

Private Member Functions

 GEOM_Object (TDF_Label &theLabel)
 Handle (TDataStd_TreeNode) _root

Private Attributes

TDF_Label _label
TCollection_AsciiString _ior
TCollection_AsciiString _parameters
int _docID

Friends

class GEOM_Engine
Standard_EXPORT friend
Handle_Standard_Type & 
GEOM_Object_Type_ ()

Constructor & Destructor Documentation

GEOM_Object::GEOM_Object ( TDF_Label &  theEntry) [private]

Constructor: private

References _docID, _label, and Handle().

GEOM_Object::GEOM_Object ( TDF_Label &  theEntry,
int  theType 
)

Constructor: public

References _docID, _label, GetObjectID(), Handle(), and TYPE_LABEL.

GEOM_Object::~GEOM_Object ( )

Destructor


Member Function Documentation

void* GEOM_Object.operator new ( size_t  ,
void *  anAddress 
)
void* GEOM_Object.operator new ( size_t  size)
void GEOM_Object.operator delete ( void *  anAddress)
Standard_EXPORT const GEOM_Object.Handle ( Standard_Type  ) const

References STANDARD_TYPE().

Standard_EXPORT Standard_Boolean GEOM_Object.IsKind ( const Handle(Standard_Type)&  AType) const

References STANDARD_TYPE().

static Standard_EXPORT GEOM_Object.Handle ( GEOM_Object  ) [static]
static Standard_EXPORT GEOM_Object.Handle ( GEOM_Object  ) [static]
const Standard_GUID & GEOM_Object::GetObjectID ( ) [static]
const Standard_GUID & GEOM_Object::GetSubShapeID ( ) [static]
Standard_EXPORT GEOM_Object.Handle ( TDataStd_TreeNode  )
Standard_EXPORT TDF_Label GEOM_Object.GetEntry ( )

References _label.

int GEOM_Object::GetType ( )

GetType

References _label, Handle(), and TYPE_LABEL.

void GEOM_Object::SetType ( int  theType)

SetType

References _label, and TYPE_LABEL.

int GEOM_Object::GetTic ( )

Returns modifications counter of this object. Comparing this value with modifications counters of argument objects (on which this object depends) we decide whether this object needs to be updated.

References _label, Handle(), and TIC_LABEL.

void GEOM_Object::SetTic ( int  theTic)

Set another value of modifications counter.

Use this method to update modifications counter of dependent object to be equal to modifications counter of its argument. This is commonly done in GEOM_Function.GetValue()

References _label, and TIC_LABEL.

void GEOM_Object::IncrementTic ( )

Increment modifications counter to mark this object as modified.

Commonly called from GEOM_Function.SetValue()

References _label, Handle(), and TIC_LABEL.

int GEOM_Object::GetDocID ( )

GetDocID

References _docID.

TopoDS_Shape GEOM_Object::GetValue ( )

GetValue

References Handle().

void GEOM_Object::SetName ( const char *  theName)

SetName

References _label.

char * GEOM_Object::GetName ( )

GetName

References _label, and Handle().

void GEOM_Object::SetColor ( const Color theColor)
GEOM_Object::Color GEOM_Object::GetColor ( )
void GEOM_Object::SetAutoColor ( bool  theAutoColor)

SetAutoColor

References _label, and AUTO_COLOR_LABEL.

bool GEOM_Object::GetAutoColor ( )

GetAutoColor

References _label, AUTO_COLOR_LABEL, and Handle().

void GEOM_Object::SetMarkerStd ( const Aspect_TypeOfMarker  theType,
double  theSize 
)

SetMarkerStd

References _label, MARKER_LABEL, MARKER_LABEL_SIZE, and MARKER_LABEL_TYPE.

void GEOM_Object::SetMarkerTexture ( int  theTextureId)

SetMarkerTexture

References _label, MARKER_LABEL, MARKER_LABEL_ID, and MARKER_LABEL_TYPE.

Aspect_TypeOfMarker GEOM_Object::GetMarkerType ( )

GetMarkerType

References _label, Handle(), MARKER_LABEL, and MARKER_LABEL_TYPE.

double GEOM_Object::GetMarkerSize ( )

GetMarkerSize

References _label, Handle(), MARKER_LABEL, and MARKER_LABEL_SIZE.

int GEOM_Object::GetMarkerTexture ( )

GetMarkerTexture

References _label, GetMarkerType(), Handle(), MARKER_LABEL, and MARKER_LABEL_ID.

void GEOM_Object::UnsetMarker ( )

SetAuxData

References SetMarkerStd().

void GEOM_Object::SetAuxData ( const char *  theData)

SetAuxData

References _label.

TCollection_AsciiString GEOM_Object::GetAuxData ( )

GetAuxData

References _label, and Handle().

void GEOM_Object::SetParameters ( const TCollection_AsciiString &  theParameters)

SetParameters

References _parameters.

TCollection_AsciiString GEOM_Object::GetParameters ( ) const

GetParameters

References _parameters.

bool GEOM_Object::IsMainShape ( )

IsSubShape

References GetSubShapeID(), and Handle().

Standard_EXPORT void GEOM_Object.SetIOR ( TCollection_AsciiString &  theIOR)

References _ior.

Standard_EXPORT TCollection_AsciiString GEOM_Object.GetIOR ( )

References _ior.

Standard_EXPORT GEOM_Object.Handle ( GEOM_Function  ) const
int GEOM_Object::GetNbFunctions ( )

GetNbFunctions

Standard_EXPORT GEOM_Object.Handle ( GEOM_Function  )
Standard_EXPORT GEOM_Object.Handle ( GEOM_Function  )
Standard_EXPORT GEOM_Object.Handle ( TColStd_HSequenceOfTransient  )
Standard_EXPORT GEOM_Object.Handle ( TColStd_HSequenceOfTransient  )
TDF_Label GEOM_Object::GetFreeLabel ( )

GetFreeLabel

References _label, and FREE_LABEL.

GEOM_Object.Handle ( TDataStd_TreeNode  ) [private]

Friends And Related Function Documentation

friend class GEOM_Engine [friend]
Standard_EXPORT friend Handle_Standard_Type& GEOM_Object_Type_ ( ) [friend]

Field Documentation

Standard_EXPORT int GEOM_Object.theFunctionType
TDF_Label GEOM_Object._label [private]
TCollection_AsciiString GEOM_Object._ior [private]
TCollection_AsciiString GEOM_Object._parameters [private]
int GEOM_Object._docID [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS