All Frameworks Class Hierarchy This Framework Previous Next Indexes
VisualizationBase Class CAT2DCustomRep
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---VisualizationBase.CATRep
|
+---VisualizationBase.CAT2DRep
|
+---CAT2DCustomRep
Usage: you must use this class as is. You should never derive it.
public class CAT2DCustomRep
Class to manage a collection of 2D graphic primitives with different graphic attributes.
Role:
The primitives that are being added to the representation are not copied
within it. The graphical attributes are copied inside the representation.
Constructor and Destructor Index
- o
CAT2DCustomRep(CATGraphicPrimitive*,CATGraphicAttributeSet&)
- Contructs a 2D custom representation with one graphic primitive.
- o
CAT2DCustomRep(void)
- Contructs an empty 2D custom representation.
- o
~CAT2DCustomRep(void)
-
Method Index
- o
AddGP(CATGraphicPrimitive*,CATGraphicAttributeSet&)
- Adds a graphic primitive to the list of managed graphic primitives.
- o
GetAttribut(int)
- Returns the graphic attributes associated with a managed graphic primitive.
- o
GetGP(int)
- Returns a graphic primitive from the list of managed graphic primitives.
- o
GetGPSize(void)
- Returns the number of managed graphic primitives.
- o
Modify(CATGraphicPrimitive*,CATGraphicPrimitive*,CATGraphicAttributeSet*)
- Replaces a graphic primitive in the list of managed graphic primitives.
- o
RemoveGP(CATGraphicPrimitive*)
- Removes a graphic primitive from the list of managed graphic primitives.
Constructor and Destructor
o CAT2DCustomRep
-
Contructs a 2D custom representation with one graphic primitive.
- Parameters:
-
- iGraphicPrimitive
- The primitive
(It is not copied inside the representation).
- iGraphicAttribut
- The graphic attributes of iGraphicPrimitive.
o CAT2DCustomRep
public CAT2DCustomRep( | void | ) |
-
Contructs an empty 2D custom representation.
o ~CAT2DCustomRep
public virtual ~CAT2DCustomRep( | void | ) |
-
Methods
o AddGP
-
Adds a graphic primitive to the list of managed graphic primitives.
- Parameters:
-
- iGraphicPrimitive
- The primitive to be added.
(It is not copied inside the representation).
- iGraphicAttribut
- The graphic attributes of iGraphicPrimitive.
o GetAttribut
-
Returns the graphic attributes associated with a managed graphic primitive. Do not delete the returned graphic primitive.
- Parameters:
-
- iIndex
- Index value in the list of managed graphic primitives.
Legal values are [0,GetGPSize()-1].
o GetGP
-
Returns a graphic primitive from the list of managed graphic primitives.
- Parameters:
-
- iIndex
- Index value in the list of managed graphic primitives.
Legal values are [0,GetGPSize()-1].
o GetGPSize
public virtual int GetGPSize( | void | ) const |
-
Returns the number of managed graphic primitives.
o Modify
-
Replaces a graphic primitive in the list of managed graphic primitives.
- Parameters:
-
- iOldGraphicPrimitive
- The graphic primitive to be removed.
The caller must delete the graphic primitive.
- iNewGraphicPrimitive
- The graphic primitive to be inserted.
The caller must not delete the graphic primitive.
- iNewGraphicAttribut
- The graphic attributes of iNewGraphicAttribut.
If NULL, the graphic attributes of iOldGraphicPrimitive are kept unchanged.
If not, the caller must delete the the graphic attributes.
o RemoveGP
-
Removes a graphic primitive from the list of managed graphic primitives.
- Parameters:
-
- iGraphicPrimitive
- The primitive to be removed. The caller must delete the graphic primitive.
This object is included in the file: CAT2DCustomRep.h
If needed, your Imakefile.mk should include the module: CATViz