VisualizationFoundation CATGraphicPrimitive

Usage: you must use this class as is. You should never derive it.


public class CATGraphicPrimitive

Base class of Graphic Primitives.
It contains the graphic datas that are to be shown on the screen. We can either find 2d or 3d graphic data lying under this object. You cannot delete a graphic primitive. You must use the CATGraphicPrimite::Destroy static method to delete a graphic primitive. The differed destruction is activated between the culling and the drawing processing. The underlying inheritance tree looks like that:

      CATGraphicPrimitive <-- CAT3DBoundingGP <-- CAT3DFaceGP
                                              <-- CAT3DCylinderGP
                                              <-- ...
                          <-- CAT2DImagePixelGP
                          <-- CAT3DMarkerGP
Objects that inherits from a CAT3DBoundingGP are the ones that may require the services provided by a bounding box. This is only valid for 3d data. Objects that have no graphic datas (in terms of triangles) directly inherit from a CATGraphicPrimitive.


Constructor and Destructor Index


o CATGraphicPrimitive(void)
Default constructor

Method Index


o Destroy(CATGraphicPrimitive*)
Memorizes the primitive destruction or deletes it if the differed destruction is not active.
o Draw(CATRender&)
Draws the graphic primitive.
o IsInEdition()
Return 1 if the graphic primitive is currently edited by a CATGraphicPrimitiveEditHelper, 0 otherwise.

Constructor and Destructor


o CATGraphicPrimitive
public CATGraphicPrimitive( )
Default constructor

Methods


o Destroy
public static Destroy( iGPToDestroy)
Memorizes the primitive destruction or deletes it if the differed destruction is not active.
Parameters:
iGPToDestroy
Pointer on the Graphic Primitive to destroy.
o Draw
public virtual Draw( iRender)
Draws the graphic primitive.
Parameters:
iRender
The render through which the graphic primitive is drawn.
o IsInEdition
public IsInEdition()
Return 1 if the graphic primitive is currently edited by a CATGraphicPrimitiveEditHelper, 0 otherwise. A CATGraphicPrimitive in edition cannot be added to a Rep.

This object is included in the file: CATGraphicPrimitive.h
If needed, your Imakefile.mk should include the module: CATVisFoundation

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.