DraftingUseItf Interface CATIDrwPicture

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIDrwPicture

Interface to handle a native Drafting Picture object.
Role: You can manage various kind of pictures, whether they are raster or vectorial pictures.


Method Index


o GetCropSize(double&,double&,double&,double&)
Gets the crop sizes of the picture in millimeters.
o GetFormat(DrwPictureFormat&,int&,double&)
Gets the picture format and gives the picture size on disk as well as its compression ratio.
o GetImage(CATBaseUnknown**)
Returns the image on which the picture is based.
o GetOriginalSize(double&,double&)
Gets the original size of the picture in millimeters, i.
o GetPosition(double&,double&)
Gets the position of the picture in its view.
o GetRatioLock(CATBoolean&)
Gets ratio ( original width / original height )lock state.
o GetSize(double&,double&)
Gets the current size of the picture in millimeters.
o SetCropSize(double,double,double,double)
Sets the crop sizes of the picture in millimeters.
o SetFormat(DrwPictureFormat,int&,double&)
Sets the picture format and gives the picture size on disk as well as its compression ratio.
o SetPosition(double,double)
Sets the position of the picture in its view.
o SetRatioLock(CATBoolean)
Sets ratio ( original width / original height )lock state.
o SetSize(double,double)
Sets the current size of the picture in millimeters.

Methods


o GetCropSize
public virtual HRESULT GetCropSize(double& oTop,
double& oBottom,
double& oLeft,
double& oRight)= 0
Gets the crop sizes of the picture in millimeters. Crop sizes are given according to the edges of the not-cropped current picture.
Parameters:
oTop
Crop size for top side in mm.
oBottom
Crop size for bottom side in mm.
oLeft
Crop size for left side in mm.
oRight
Crop size for right side in mm.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o GetFormat
public virtual HRESULT GetFormat(DrwPictureFormat& oPictureFormat,
int& oSizeOnDisk,
double& oRatio)= 0
Gets the picture format and gives the picture size on disk as well as its compression ratio.
Parameters:
oPictureFormat
Compression format.
oSizeOnDisk
Picture size on disk in bytes.
oRatio
Ratio between the picture size on disk and its uncompressed size in %.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
See also:
DrwPictureFormat
o GetImage
public virtual HRESULT GetImage(CATBaseUnknown** oImage)= 0
Returns the image on which the picture is based. It can be a CATPixelImage or CATVectorImage.
Parameters:
iTop
Pointer to the image created.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o GetOriginalSize
public virtual HRESULT GetOriginalSize(double& oOriginalWidth,
double& oOriginalHeight)= 0
Gets the original size of the picture in millimeters, i.e. the size of the picture when it was created. This size is set by the factory of the picture
Parameters:
oWidth
Original width of the picture in mm.
oHeight
Original height of the picture in mm.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
See also:
CATIDftBaseDressUpFactory
o GetPosition
public virtual HRESULT GetPosition(double& oXCoordinate,
double& oYCoordinate)= 0
Gets the position of the picture in its view.
Parameters:
oXCoordinate
X coordinate in the view.
oYCoordinate
Y coordinate in the view.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o GetRatioLock
public virtual HRESULT GetRatioLock(CATBoolean& oLock)= 0
Gets ratio ( original width / original height )lock state. If the lock is CATrue, the ratio between width and height must be respected when using the SetSize methode of this interface. If the lock is CATFalse, width and height are not forced to respect the original ratio.
Parameters:
oLock
Lock ratio ( width / height ) yes/no.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o GetSize
public virtual HRESULT GetSize(double& oWidth,
double& oHeight)= 0
Gets the current size of the picture in millimeters.
Parameters:
oWidth
Current width of the picture in mm.
oHeight
Current height of the picture in mm.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o SetCropSize
public virtual HRESULT SetCropSize(double iTop,
double iBottom,
double iLeft,
double iRight)= 0
Sets the crop sizes of the picture in millimeters. Crop sizes are given according to the edges of the not-cropped current picture.
Parameters:
iTop
Crop size for top side in mm.
iBottom
Crop size for bottom side in mm.
iLeft
Crop size for left side in mm.
iRight
Crop size for right side in mm.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o SetFormat
public virtual HRESULT SetFormat( const DrwPictureFormat iPictureFormat,
int& oSizeOnDisk,
double& oRatio)= 0
Sets the picture format and gives the picture size on disk as well as its compression ratio.
Parameters:
iPictureFormat
Compression format.
oSizeOnDisk
Picture size on disk in bytes.
oRatio
Ratio between the picture size on disk and its uncompressed size in %.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
See also:
DrwPictureFormat
o SetPosition
public virtual HRESULT SetPosition(double iXCoordinate,
double iYCoordinate)= 0
Sets the position of the picture in its view.
Parameters:
iXCoordinate
X coordinate in the view.
iYCoordinate
Y coordinate in the view.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o SetRatioLock
public virtual HRESULT SetRatioLock(CATBoolean iLock)= 0
Sets ratio ( original width / original height )lock state. If the lock is CATrue, the ratio between width and height must be respected when using the SetSize methode of this interface. If the lock is CATFalse, width and height are not forced to respect the original ratio.
Parameters:
iLock
Lock ratio ( width / height ) yes/no.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.
o SetSize
public virtual HRESULT SetSize(double iWidth,
double iHeight)= 0
Sets the current size of the picture in millimeters.
Parameters:
oWidth
Current width of the picture in mm.
oHeight
Current height of the picture in mm.
Returns:

Legal values:
S_OK
Method correctly executed.
E_FAIL
Method execution failed.
Reasons of the failure are not given.
E_IMPL
No implementation available for this method.

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

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