VisualizationFoundation 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 AddBoundingElement( const 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 ComputeBoundingElement( 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 GetBoundingCube( )
Returns the bounding element pointer ...
o GetBoundingElement
public GetBoundingElement()
Returns the bounding element of the representation.
o GetBoundingElement
public GetBoundingElement()
Returns the bounding element of the representation.
o GetIsValidTC
public virtual GetIsValidTC()
Return the validity of texture coordinates.
o GetMaterialInheritance
public virtual GetMaterialInheritance()
Returns the inheritance mode for the material of the rep.
o ResetBoundingElement
public ResetBoundingElement()
Resets the bounding element of representation. The visualization manager will ignore the representation.
o SetBoundingElement
public SetBoundingElement( const iBoundingSphere)
Sets the bounding element of the representation.
Parameters:
iBoundingSphere
The (smallest) bounding element containing the representation.
o SetInvalid
public virtual SetInvalid()
Invalidates the bounding element of the representation. The visualization manager will recompute the bounding element of the representation.
o SetIsValidTC
public virtual SetIsValidTC( 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 SetMaterialInheritance( 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: CATVisFoundation

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