CAM Library
API Reference
Transform Functions

Available Transformation Functions used by CAM Library. More...

Functions

int camlib_Transform_Move (float x, float y)
 Move selected figures by x and y value. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_Copy (float x, float y)
 Copy selected figures by x and y value. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_MirrorH ()
 Mirror selected figures horizontally about center of selected array. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_MirrorV ()
 Mirror selected figures vertically about center of selected array. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_Rotate (float angle)
 Rotate selected figures about center of selected array. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_Scale (float factor)
 Scale selected figures about origin. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_ScaleXY (float xfactor, float yfactor)
 Scale selected figures about origin in X and Y directions respectively. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_Properties (int nLayer, int nCompositeLevel, int nDcode)
 Modify properties of selected figures May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_Delete ()
 Remove selected figures. May be used after camlib_ActivateCell and Selection Functions. More...
 
int camlib_Transform_CopyToLayer (int nLayer)
 Copies selected figure to other layers. May be used after camlib_ActivateCell and Selection Functions. More...
 

Detailed Description

Available Transformation Functions used by CAM Library.

Function Documentation

◆ camlib_Transform_Copy()

int camlib_Transform_Copy ( float  x,
float  y 
)

Copy selected figures by x and y value. May be used after camlib_ActivateCell and Selection Functions.

Note
X and Y values are in User Units. To change user units see, camlib_SetUserUnits or camlib_GetUserUnits
Parameters
xOffset in horizontal direction (in user units)
yOffset in vertical direction (in user units)
Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_CopyToLayer()

int camlib_Transform_CopyToLayer ( int  nLayer)

Copies selected figure to other layers. May be used after camlib_ActivateCell and Selection Functions.

Parameters
nLayerLayer number to assign copied figures
Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_Delete()

int camlib_Transform_Delete ( )

Remove selected figures. May be used after camlib_ActivateCell and Selection Functions.

Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_MirrorH()

int camlib_Transform_MirrorH ( )

Mirror selected figures horizontally about center of selected array. May be used after camlib_ActivateCell and Selection Functions.

Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_MirrorV()

int camlib_Transform_MirrorV ( )

Mirror selected figures vertically about center of selected array. May be used after camlib_ActivateCell and Selection Functions.

Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_Move()

int camlib_Transform_Move ( float  x,
float  y 
)

Move selected figures by x and y value. May be used after camlib_ActivateCell and Selection Functions.

Note
X and Y values are in User Units. To change user units see, camlib_SetUserUnits or camlib_GetUserUnits
Parameters
xOffset in horizontal direction (in user units)
yOffset in vertical direction (in user units)
Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_Properties()

int camlib_Transform_Properties ( int  nLayer,
int  nCompositeLevel,
int  nDcode 
)

Modify properties of selected figures May be used after camlib_ActivateCell and Selection Functions.

Parameters
nLayerLayer number to assign selected figures (use -1 to keep the same)
nCompositeLevelComposite level to assign selected figures (use -1 to keep same)
nDcodeDcode to assign selected figures (use -1 to keep same)
Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_Rotate()

int camlib_Transform_Rotate ( float  angle)

Rotate selected figures about center of selected array. May be used after camlib_ActivateCell and Selection Functions.

Parameters
angleDegrees to rotate selected figures.
Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_Scale()

int camlib_Transform_Scale ( float  factor)

Scale selected figures about origin. May be used after camlib_ActivateCell and Selection Functions.

Parameters
factorNumerical ratio to scale figures (default is 1.0)
Returns
Returns 0 if successful, else -1.

◆ camlib_Transform_ScaleXY()

int camlib_Transform_ScaleXY ( float  xfactor,
float  yfactor 
)

Scale selected figures about origin in X and Y directions respectively. May be used after camlib_ActivateCell and Selection Functions.

Parameters
xfactorNumerical ratio to scale figures horizontally (default is 1.0)
yfactorNumerical ratio to scale figures vertically (default is 1.0)
Returns
Returns 0 if successful, else -1.