Print CATPrint3DRepImage

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


public class CATPrint3DRepImage

Class to create a print image from a 3D-rep.


Constructor and Destructor Index


o CATPrint3DRepImage(CAT3DRep*,int,int)
Constructs a CATPrint3DRepImage.
o ~CATPrint3DRepImage()

Method Index


o Decode(CATPrintGenerator*,CATPrintParameters&)
Computes the 3D-rep image with the appropriate generator and parameters.
o GetSize(float&,float&)
Gets the print image size.
o GetSupport(void)
Gets the support of the print image.
o GetViewpoint(void)
Gets the 3D-viewpoint of the print image.
o Rasterize(void)
Rasterizes the print image.

Constructor and Destructor


o CATPrint3DRepImage
public CATPrint3DRepImage( i3DRep,
iSupportWidth= 400,
iSupportHeight= 300)
Constructs a CATPrint3DRepImage.
Parameters:
i3DRep
The 3D-rep to create the image.
iSupportWidth
The width of the support. The default is 400.
iSupportHeight
The height of the support. The default is 300.
o ~CATPrint3DRepImage
public virtual ~CATPrint3DRepImage()

Methods


o Decode
public Decode( iGenerator,
const iParameters)
Computes the 3D-rep image with the appropriate generator and parameters.
Parameters:
iGenerator
The generator (see CATPrintGenerator).
iParameters
The print parameters (see CATPrintParameters).
Returns:
The status of the method.
Legal values: 0 -> KO, 1 -> OK.
o GetSize
public GetSize( oWidth,
oHeight)
Gets the print image size.
Parameters:
oWidth
The width of the image.
oHeight
The height of the image.
Returns:
The status of the method.
Legal values: 0 -> KO, 1 -> OK.
o GetSupport
public GetSupport( )
Gets the support of the print image.
Returns:
The support of the image.
o GetViewpoint
public GetViewpoint( )
Gets the 3D-viewpoint of the print image.
Returns:
The 3D-viewpoint of the image.
o Rasterize
public Rasterize( )
Rasterizes the print image.
Returns:
The generated CATPixelImage.

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

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