All Frameworks Class Hierarchy This Framework Previous Next Indexes
VisualizationBase Class CATModelIdentificator
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATModelIdentificator
Usage: you must use this class as is. You should never derive it.
public class CATModelIdentificator
Class to create a model identifier.
Role:
This class is dedicated to be the only link between the graphical representations and
their corresponding objects. Refer to CATIVisu to understand how one object can be visualized. This identifier is designed to make graphical representations (that is the "visualization world") independent
from their object (that is the "applicative world") and make the link consistent.
The identifier can be seen either as an integer, or as a pointer to one object, or as a generic pointer .
Such an identifier is set on each graphical representation built from the
CATIVisu.BuildRep() method . The enclosed identifier refers to the object that implements a
specialized visualization interface so as to find out the "model" associated with the graphical representation.
- See also:
- CATIVisu
Constructor and Destructor Index
- o
CATModelIdentificator()
- Default constructor.
- o
CATModelIdentificator(CATBaseUnknown*)
- Constructs an identifier from a pointer to one object.
- o
CATModelIdentificator(CATINTPTR)
- Constructs an identifier from an integer.
- o
CATModelIdentificator(CATModelIdentificator&)
- Copy constructor.
- o
CATModelIdentificator(void*)
- Constructs an identifier from a pointer.
- o
~CATModelIdentificator()
-
Method Index
- o
GetId()
- Returns the identifier as a pointer to one object.
- o
GetIntId()
- Returns the identifier as a number.
- o
GetVoidId()
- Returns the identifier as a pointer.
- o
SetModelId(CATBaseUnknown*)
- Sets the identifier from a pointer to one object.
- o
SetModelId(CATINTPTR)
- Sets the identifier from a number.
- o
SetModelId(void*)
- Sets the identifier from a pointer.
Constructor and Destructor
o CATModelIdentificator
public CATModelIdentificator( | ) |
-
Default constructor.
o CATModelIdentificator
-
Constructs an identifier from a pointer to one object.
- Parameters:
-
- iObj
- the pointer to one object.
o CATModelIdentificator
-
Constructs an identifier from an integer.
- Parameters:
-
- iV
- the number.
o CATModelIdentificator
-
Copy constructor.
- Parameters:
-
- iIdentifier
- the model identifier to clone.
o CATModelIdentificator
public CATModelIdentificator( | void* | iP) |
-
Constructs an identifier from a pointer.
- Parameters:
-
- iP
- the pointer.
o ~CATModelIdentificator
public ~CATModelIdentificator( | ) |
-
Methods
o GetId
-
Returns the identifier as a pointer to one object.
o GetIntId
-
Returns the identifier as a number.
o GetVoidId
public void * GetVoidId( | )const |
-
Returns the identifier as a pointer.
o SetModelId
-
Sets the identifier from a pointer to one object.
- Parameters:
-
- iId
- the pointer to one object.
o SetModelId
-
Sets the identifier from a number.
- Parameters:
-
- iId
- the number.
o SetModelId
public void SetModelId( | void* | iId) |
-
Sets the identifier from a pointer.
- Parameters:
-
- iId
- the pointer.
This object is included in the file: CATModelIdentificator.h
If needed, your Imakefile.mk should include the module: CATViz