PrintBase CATPrintDevice
Usage: you can derive this class.
public class CATPrintDevice
Class to create print devices.
Role: This class is abstract, so you need to derive this class
to build print devices.
Constructor and Destructor Index
- o
CATPrintDevice()
- Constructs a CATPrintDevice.
- o
~CATPrintDevice()
-
Method Index
- o
Begin(CATPrintParameters&)
- Initializes the device.
- o
End(void)
- Ends the device.
- o
GetGenerator(void)
- Gets the generator associated to the device.
- o
Print(CATBaseUnknown*,CATPrintParameters&)
- Prints a printable object.
- o
SetGenerator(CATPrintGenerator*)
- Defines the generator associated to the device.
Constructor and Destructor
o CATPrintDevice
-
Constructs a CATPrintDevice.
o ~CATPrintDevice
public virtual ~CATPrintDevice( | ) |
-
Methods
o Begin
public virtual Begin( | const | iParameter) |
-
Initializes the device.
Pure virtual method.
- Parameters:
-
- iParameters
- The generator parameters made available through SetGenerator.
- Returns:
- The status of the method.
Legal values: 0 if device initialization failed, 1 otherwise.
o End
-
Ends the device.
Pure virtual method.
o GetGenerator
public virtual GetGenerator( | | ) |
-
Gets the generator associated to the device.
- Returns:
- The generator associated to the device.
o Print
public virtual Print( | | iObject, |
| const | iParameters) |
-
Prints a printable object.
- Parameters:
-
- iObject
- The printable object.
- iParameters
- The print parameters (see CATPrintParameters).
- Returns:
- The status of the method.
Legal values: 0 -> KO, 1 -> OK.
o SetGenerator
protected virtual SetGenerator( | | iGenerator) |
-
Defines the generator associated to the device.
- Parameters:
-
- iGenerator
- The generator associated to the device (see CATPrintGenerator).
This object is included in the file: CATPrintDevice.h
If needed, your Imakefile.mk should include the module: CATPrintBase
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.