Retreives the heigth and width of the current CATSupport.
Parameters:
oWidth
the width.
oHeight
the height.
o IsAmbientActivated
public IsAmbientActivated(
)
Returns whether or not ambient light is active.
Returns:
integer
1 = ambient ligh is active
0 = ambient ligh is not active
o IsClipped
public IsClipped(
oPoint,
oNormal,
oCappingPlaneSeen)
Returns the number of clipping planes.
Parameters:
oPoint
pointer to an array of 3xiNbPlanes of coordinates. Each (x,y,z) represents a point belonging
to a clipping plane. And there is only one point per plane.
oNnormal
pointer to an array of 3xiNbPlanes of coordinates. Each (x,y,z) represents a normal to one plane.
And there is only one normal per plane.
oCappingPlaneSeen
0 = intersection between clipping planes and volumic graphical representations is not filled in
1 = intersection between clipping planes and volumic graphical representations is filled in
o IsFogOn
public IsFogOn(
)
Returns whether or not fog is active.
Returns:
integer
1 = fog is active
0 = fog is not active
o RemoveClippingPlane
public RemoveClippingPlane(
)
Resets all the clipping planes.
o RemoveViewpoint
public virtual RemoveViewpoint(
iVpt)
Removess a given viewpoint.
Parameters:
iVpt
the viewpoint.
o SetAmbientActivation
public SetAmbientActivation(
iOnOff)
Activates or Deactivates the global ambient light.
Parameters:
iOnOff
0 = off.
1 = on.
o SetAntiAliasingMode
public SetAntiAliasingMode(
const
iAntialiasingMode)
Sets the antialiasing mode for lines.
Parameters:
iAntialiasingMode
0 = antialiasing is off
1 = antialiasing is on
o SetBackgroundColor
public virtual SetBackgroundColor(
const
iR,
const
iG,
const
iB)
Sets the background color.
Parameters:
iR
the red composant color.
iG
the green composant color.
iB
the blue composant color.
o SetCullingPrecision
public SetCullingPrecision(
const
iCullingPrecision)
Gives the minimum pixel size for objects to be drawn.
Role:
Objects which size is less than the iCullingPrecision are not drawn.
Parameters:
iCullingPrecision
the minimum pixel size for objects to be drawn.
o SetDefaultMaterialProperties
public SetDefaultMaterialProperties(
iDiffAmbCoef,
iSpecCoef,
iShininess)
Sets default material properties.
Parameters:
iDiffAmbCoef
the diffuse and ambient coefficient.
iSpecCoef
the specular coefficient.
iShininess
the shininess.
o SetFogMode
public SetFogMode(
const
iFogMode)
Sets the fog mode.
Parameters:
iFogMode
0 = fog is off
1= fog is on
o SetGlobalAmbientLight
public virtual SetGlobalAmbientLight(
const
iR,
const
iG,
const
iB)
Sets the global ambient light color.
Parameters:
iR
the red composant color.
iG
the green composant color.
iB
the blue composant color.
o SetLightViewFitting
public SetLightViewFitting(
const
i_lightViewFitting,
)
o SetMMInSupportUnit
public SetMMInSupportUnit(
const
iSize)
Sets one millimeter size in pixel size.
Parameters:
iSize
the pixel size .
o SetRatioWH
public SetRatioWH(
const
iRatio)
Sets the ratio heigth/width of one pixel.
Role:
it is useful when pixel is not a squarre. It is screen-dependant.
o SetSagPrecision
public SetSagPrecision(
const
iSagPrecision)
Sets the sag in pixel size.
Role:
sag is used for determining which level of details to use.
Parameters:
iSagPrecision
the sagprecision.
o SetStereoMode
public virtual SetStereoMode(
const
iMode,
const
iEyeGap)
Sets the stereo mode.
Parameters:
iMode
0 = off
1 = manual
2 = automatic
iEyeGap
gap between the eyes (model unit). Avaible only in manual mode.
o SetViewMode
public SetViewMode(
const
iMode,
const
iActive)
Sets the viewmode for viewer enclosed in the current CATSupport.