All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Print Class CATPrint2DRepImage

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---PrintBase.CATPrintImage
        |
        +---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(CAT2DRep* i2DRep)
Constructs a CATPrint2DRepImage.
Parameters:
i2DRep
The 2D-rep to create the image.
o ~CATPrint2DRepImage
public virtual ~CATPrint2DRepImage()

Methods


o Decode
public int Decode(CATPrintGenerator* iGenerator,
const CATPrintParameters& 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 int GetSize(float& oWidth,
float& 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.
o GetSupport
public CATSupport* GetSupport(void )
Returns the support of the print image.
Role: The support can be a screen, a paper ...
Returns:
The support of the image.
o GetViewpoint
public CAT2DViewpoint* GetViewpoint(void )
Returns the 2D-viewpoint of the print image.
Returns:
The 2D-viewpoint of the image.
o Rasterize
public CATPixelImage* Rasterize(int 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.

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

Copyright © 2003, Dassault Systèmes. All rights reserved.