All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Print Class CATPrint3DRepImage

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---PrintBase.CATPrintImage
        |
        +---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(CAT3DRep* i3DRep,
int iSupportWidth= 400,
int 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 int Decode(CATPrintGenerator* iGenerator,
const CATPrintParameters& 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 int GetSize(float& oWidth,
float& 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 CATSupport* GetSupport(void )
Gets the support of the print image.
Returns:
The support of the image.
o GetViewpoint
public CAT3DViewpoint* GetViewpoint(void )
Gets the 3D-viewpoint of the print image.
Returns:
The 3D-viewpoint of the image.
o Rasterize
public CATPixelImage* Rasterize(void )
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 © 2003, Dassault Systèmes. All rights reserved.