All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Class CAT2DRep

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---VisualizationBase.CATRep
        |
        +---CAT2DRep
 

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


public class CAT2DRep

Class to create a 2D representation of an application object.
Role: This class is the base class for all 2D representation classes, necessary to visualize application objects.


Constructor and Destructor Index


o CAT2DRep(void)
Constructs a representation.
o ~CAT2DRep(void)

Method Index


o AddBoundingElement(CAT2DBoundingBox&)
Add a bounding element to the 2D representation.
o GetBoundingCube(void)
Returns the bounding element pointer .
o GetBoundingElement(void)
Returns the bounding element of the 2D representation.
o GetBoundingElement(void)
Returns the bounding element of the 2D representation.
o IsInvalid()
Returns whether or not the bounding element is invalid.
o ResetBoundingElement(void)
Reset the bounding element of the 2D representation.
o SetBoundingElement(CAT2DBoundingBox&)
Sets the bounding element of the 2D representation.
o SetInvalid()
Sets the bounding element of the current graphical representation as invalid.

Constructor and Destructor


o CAT2DRep
public CAT2DRep(void )
Constructs a representation.
o ~CAT2DRep
public virtual ~CAT2DRep(void )

Methods


o AddBoundingElement
public virtual void AddBoundingElement( const CAT2DBoundingBox& iBoundingElement)
Add a bounding element to the 2D representation. In fact, this method computes a new bounding element which contains the bounding element of the representation and the bounding element to be added to the repsentation. This new bounding element is the shortest one that it is possible to create.
Parameters:
iBoundingElement
The bounding element to be added to the 2D representation.
o GetBoundingCube
public inline CATBoundingElement * GetBoundingCube(void )
Returns the bounding element pointer ...
o GetBoundingElement
public inline const CAT2DBoundingBox & GetBoundingElement(void )
Returns the bounding element of the 2D representation.
o GetBoundingElement
public const CAT2DBoundingBox & GetBoundingElement(void )
Returns the bounding element of the 2D representation.
o IsInvalid
public int IsInvalid()
Returns whether or not the bounding element is invalid.
o ResetBoundingElement
public void ResetBoundingElement(void )
Reset the bounding element of the 2D representation.
o SetBoundingElement
public void SetBoundingElement( const CAT2DBoundingBox& iBoundingElement)
Sets the bounding element of the 2D representation.
Parameters:
iBoundingElement
The bounding element of the 2D representation.
o SetInvalid
public void SetInvalid()
Sets the bounding element of the current graphical representation as invalid. That means that its bounding element is not right and should be computed when necessary. This information is send up to its fathers, so that they are warned that one of their children is invalid. And as a consequence fathers are also invalid. And so on till we reach the root of the graphical tree.

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

Copyright © 2003, Dassault Systèmes. All rights reserved.