ILinkedGrafPort

ILinkedGrafPort provides the basic functionality for linked ports. The ILinkedGrafPort class provides the basic functionality for linked ports. You cannot copy or copy construct objects of this class.


ILinkedGrafPort - Member Functions and Data by Group

Constructors & Destructor

Use the functions in this group to create and destroy objects of class ILinkedGrafPort.


[view class]
~ILinkedGrafPort
public:
virtual ~ILinkedGrafPort()
Destroys a linked graphics port object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
ILinkedGrafPort
Constructs a linked graphics port object.


Overload 1
public:
ILinkedGrafPort( IGrafPort* referencedParent, const IGArea* referencedClipArea )
Use this constructor to create an ILinkedGrafPort that references the given clip area.

referencedParent
A pointer to the IGrafPort parent.
referencedClipArea
A constant pointer to the reference clipping area.

Return
A pointer to the new ILinkedGrafPort.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
ILinkedGrafPort( IGrafPort* referencedParent, const IAttributeState* referencedAttributes )
Use this constructor to create an ILinkedGrafPort that references the given attributes.

referencedParent
A pointer to the parent IGrafport object.
referencedAttributes
A constant pointer to the reference attributes.

Return
A pointer to the new ILinkedGrafPort.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 3
public:
ILinkedGrafPort( IGrafPort* referencedParent, EMatrixKind matrixKind, const IGrafMatrix* referencedMatrix )
Use this constructor to create an ILinkedGrafPort that references the given transformation matrix.

referencedParent
A pointer to the IGrafPort parent.
matrixKind
The type of the reference matrix.
referencedMatrix
A constant pointer to the reference transformation matrix.

Return
A pointer to the new ILinkedGrafPort.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Accessing the Port

Use the function in this group to access the port to be registered.


[view class]
portForStateUsage
public:
virtual const IGrafPort* portForStateUsage() const
Provides a more efficient way to get access to the port that needs to have its usage registered.

Return
Return a constant pointer to the object itself.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Converting from Pixel to Pointsize

Use the functions in this group to convert coordinates from pixels to points.


[view class]
pixelToPointSize
public:
virtual const IGrafMatrix& pixelToPointSize() const
Converts from device coordinate which is in pixel to "ideal" coordinate which is in point size (1/72 inch).

Return
Returns a constant reference to the conversion matrix from pixel size to point size.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Inverting the Device Transformation

Use the function in this group to invert the device tranform to the logical coordinate system.


[view class]
invertedDeviceTransform
public:
virtual const IGrafMatrix& invertedDeviceTransform() const
Inverts the device tranformation to its logical coordinate system.

Return
A constant reference to the inverted device transformation matrix.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Marking the Graphics State

Use the functions in this group to mark the graphics state as in use of not.


[view class]
doneWithState
public:
virtual void doneWithState() const
Marks the graphic state as being no longer in use so that changes to the state can be made.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
useState
public:
virtual void useState() const
Marks the graphic state as being in use so that no changes to the state are made until doneWithState is called.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


ILinkedGrafPort - Inherited Member Functions and Data

Inherited Public Functions

IGrafPort

Inherited Public Data

Inherited Protected Functions

IGrafPort

Inherited Protected Data