All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Class CAT3DRep

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

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


public class CAT3DRep

Class to create a 3D representation of an application object.
Role: This class is the base class for all 3D representation classes. It manages specific 3D behavior, such as

  1. 3D bounding element
  2. streaming
  3. outline builder
  4. materials


Constructor and Destructor Index


o CAT3DRep()
Constructor of an empty 3D representation.
o ~CAT3DRep()

Method Index


o AddBoundingElement(CAT3DBoundingSphere&)
Adds the given bounding element to the existing one.
o ComputeBoundingElement(int)
Computes the bounding element of the representation.
o GetBoundingCube(void)
Returns the bounding element pointer .
o GetBoundingElement()
Returns the bounding element of the representation.
o GetBoundingElement()
Returns the bounding element of the representation.
o GetIsValidTC()
Return the validity of texture coordinates.
o GetMaterialInheritance()
Returns the inheritance mode for the material of the rep.
o ResetBoundingElement()
Resets the bounding element of representation.
o SetBoundingElement(CAT3DBoundingSphere&)
Sets the bounding element of the representation.
o SetInvalid()
Invalidates the bounding element of the representation.
o SetIsValidTC(int)
Sets the validity of texture coordinates.
o SetMaterialInheritance(int)
Sets the heritance mode for material.

Constructor and Destructor


o CAT3DRep
public CAT3DRep()
Constructor of an empty 3D representation.
o ~CAT3DRep
public virtual ~CAT3DRep()

Methods


o AddBoundingElement
public virtual void AddBoundingElement( const CAT3DBoundingSphere& iBoundingSphere)
Adds the given bounding element to the existing one.
Parameters:
iBoundingSphere
The current bounding element of the representation will be modified to contain iBoundingSphere.
o ComputeBoundingElement
public virtual void ComputeBoundingElement(int iShowSpace=1)
Computes the bounding element of the representation. The bounding element should be the smallest possible sphere containing the representation.
Parameters:
iShowSpace

Legal Values:
  1. 0 :
  2. 1 :
o GetBoundingCube
public inline CATBoundingElement * GetBoundingCube(void )
Returns the bounding element pointer ...
o GetBoundingElement
public inline const CAT3DBoundingSphere & GetBoundingElement()
Returns the bounding element of the representation.
o GetBoundingElement
public const CAT3DBoundingSphere & GetBoundingElement()
Returns the bounding element of the representation.
o GetIsValidTC
public virtual int GetIsValidTC()
Return the validity of texture coordinates.
o GetMaterialInheritance
public virtual int GetMaterialInheritance()
Returns the inheritance mode for the material of the rep.
o ResetBoundingElement
public void ResetBoundingElement()
Resets the bounding element of representation. The visualization manager will ignore the representation.
o SetBoundingElement
public void SetBoundingElement( const CAT3DBoundingSphere& iBoundingSphere)
Sets the bounding element of the representation.
Parameters:
iBoundingSphere
The (smallest) bounding element containing the representation.
o SetInvalid
public virtual void SetInvalid()
Invalidates the bounding element of the representation. The visualization manager will recompute the bounding element of the representation.
o SetIsValidTC
public virtual void SetIsValidTC(int iState)
Sets the validity of texture coordinates.
Parameters:
iState
  1. 0 : TC invalid, they will be computed at next Draw
  2. 1 : TC valid
o SetMaterialInheritance
public virtual void SetMaterialInheritance(int iInheritance)
Sets the heritance mode for material.
Parameters:
iInheritance
  1. MATERIAL_NOT_INHERIT : children reps will not have this rep's material
  2. MATERIAL_INHERIT : children reps will have automaticly this rep's material
  3. MATERIAL_FORCE_INHERIT : same as INHERIT, but even when a father has the INHERIT flag

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

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