VisualizationFoundation CAT2DBagRep

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


public class CAT2DBagRep

Class to create a representation of a 2D bag.
Role: This object is the main tool for the definition of a representation tree. It manages a list of children representations, and a position matrix, thus defining a complete spatial graph node.
The CAT2DBagRep has to be created empty, then children can be added or removed using the AddChild and RemoveChild methods. There's no control on the way children are being added or removed. Caution has to be taken in order to avoid the definition of cycles.


Constructor and Destructor Index


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

Method Index


o AddChild(CATRep&)
Adds a 2D representation in the 2D bag representation.
o ComputeBoundingElement(int)
Computes the bounding element of the bag rep.
o Destroy(void)
Deletes the representation.
o Empty()
Removes (not deletes) all the children of the bag.
o GetChildren(void)
Returns a list of representations which are in the 2D bag represenation.
o GetMatrix(void)
Returns the matrix of the 2D bag representation.
o RemoveChild(CATRep&)
Removes a representation in the 2D bag representation.
o RemoveChildren(CATRep&)
Removes a representation in the 2D bag representation but does not compute the new bounding element.
o ResetMatrix(void)
Resets the matrix of the 2D bag representation.
o SetHighlightMode(int,int)
Sets the highlight mode of the representation.
o SetMatrix(CAT3x3Matrix&)
Sets the matrix of the 2D bag representation.
o SetShowMode(int,int)
Sets the show mode of the representation.

Constructor and Destructor


o CAT2DBagRep
public CAT2DBagRep( )
Constructs a representation.
o ~CAT2DBagRep
public virtual ~CAT2DBagRep( )

Methods


o AddChild
public virtual AddChild( iRep)
Adds a 2D representation in the 2D bag representation.
Parameters:
iRep
The 2D representation to add in the bag representation.
o ComputeBoundingElement
public virtual ComputeBoundingElement( iShowSpace= 1)
Computes the bounding element of the bag rep. With this method, bounding elements of father's bagreps are computed too.
o Destroy
public virtual Destroy( )
Deletes the representation. The standard destructor for this object won't destroy the children, because there may be more than one reference on them. To effectively perform the destruction of the rep's children, use this method.
o Empty
public virtual Empty()
Removes (not deletes) all the children of the bag.
o GetChildren
public GetChildren( )
Returns a list of representations which are in the 2D bag represenation.
o GetMatrix
public GetMatrix( )
Returns the matrix of the 2D bag representation.
o RemoveChild
public virtual RemoveChild( iRep)
Removes a representation in the 2D bag representation.
Parameters:
iRep
The representation to remove in the bag representation.
o RemoveChildren
public virtual RemoveChildren( iRep)
Removes a representation in the 2D bag representation but does not compute the new bounding element.
Parameters:
iRep
The representation to remove in the bag representation.
o ResetMatrix
public ResetMatrix( )
Resets the matrix of the 2D bag representation.
o SetHighlightMode
public virtual SetHighlightMode( iHighlightmode,
iPropagationmode=0)
Sets the highlight mode of the representation.
Parameters:
iHighlightMode

:
  1. 0 : none
  2. 1 : highlight
iPropagationMode

:
  1. 0 : just sets the highlight mode of the 2D bag representation
  2. 1 : sets the highlight mode of the 2D bag representation and propagates this highlight mode to all representations which are in the bag representation.
The default value is 0;
o SetMatrix
public SetMatrix( const iMath)
Sets the matrix of the 2D bag representation.
o SetShowMode
public virtual SetShowMode( iShowmode,
iPropagationmode=0)
Sets the show mode of the representation.
Parameters:
iShowmode

:
  1. 0 : show
  2. 1 : noshow
iPropagationMode

:
  1. 0 : just sets the show mode of the 2D bag representation
  2. 1 : sets the show mode of the 2D bag representation and propagates this show mode to all representations which are in the bag representation.
The default value is 0;

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

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