Print CATPrint2DRepImage

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


public class CATPrint2DRepImage

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


Constructor and Destructor Index


o CATPrint2DRepImage(CAT2DRep*)
Constructs a CATPrint2DRepImage.
o ~CATPrint2DRepImage()

Method Index


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

Constructor and Destructor


o CATPrint2DRepImage
public CATPrint2DRepImage( i2DRep)
Constructs a CATPrint2DRepImage.
Parameters:
i2DRep
The 2D-rep to create the image.
o ~CATPrint2DRepImage
public virtual ~CATPrint2DRepImage()

Methods


o Decode
public Decode( iGenerator,
const iParameters)
Computes the 2D-rep image with the appropriate generator and parameters.
Parameters:
iGenerator
The generator.
iParameters
The print parameters.
Returns:
The status of the method.
Legal values: 0 -> KO, 1 -> OK.
o GetSize
public GetSize( oWidth,
oHeight)
Retrieves 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. Deprecated R212 In favor of CATPrint2DRepImageBase::GetSize(float& oWidth, float& oHeight)
o GetSupport
public GetSupport( )
Returns the support of the print image.
Role: The support can be a screen, a paper ...
Returns:
The support of the image. Deprecated R212 In favor of CATPrint2DRepImageBase::GetSupport(void)
o GetViewpoint
public GetViewpoint( )
Returns the 2D-viewpoint of the print image.
Returns:
The 2D-viewpoint of the image. Deprecated R212 In favor of CATPrint2DRepImageBase::GetViewpoint(void)
o Rasterize
public Rasterize( iPixelSize= 320)
Rasterizes the print image.
Parameters:
iPixelSize
The largest side of the generated CATPixelImage.
Legal values: The default is 320.
Returns:
The generated CATPixelImage. Deprecated R212 In favor of CATPrint2DRepImageBase::Rasterize(int iPixelSize = 320)

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

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