Dimension Angle Functions

Functions:

MTK_Object_DimensionAngle_GetAttributes

int MTK_Object_DimensionAngle_GetAttributes(
			MTK_Object* obj,
			char* label, double* tickGap,
			double* tickOffset, double* tickExtentSize,
			double* arrowLength, double* arrowWidth
			);
		

Description

Get the attributes of a dimension angle object.

Parameters

obj

pointer to an MTK_Object struct

label

the label of the dimension angle (char*)

tickGap

the tick gap (double*)

tickOffset

the tick offset (double*)

tickExtentSize

the tick extent size (double*)

arrowLength

the length of the arrow head (double*)

arrowWidth

the width of the arrow head (double*)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_GetOrigin

int MTK_Object_DimensionAngle_GetOrigin(
			MTK_Object* obj,
			double* x, double* y, double* z
			);
		

Description

Get the origin location of a dimension angle object (the centre of the angle).

Parameters

obj

pointer to an MTK_Object struct

x

origin x value (double*)

y

origin y value (double*)

z

origin z value (double*)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_GetRadius

int MTK_Object_DimensionAngle_GetRadius(
			MTK_Object* obj,
			double* x, double* y, double* z
			);
		

Description

Get the radius location of a dimension angle object (the start of the angle).

Parameters

obj

pointer to an MTK_Object struct

x

radius x value (double*)

y

radius y value (double*)

z

radius z value (double*)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_GetSweep

int MTK_Object_DimensionAngle_GetSweep(
			MTK_Object* obj,
			double* x, double* y, double* z
			);
		

Description

Get the sweep location of a dimension angle object (the end of the angle).

Parameters

obj

pointer to an MTK_Object struct

x

sweep x value (double*)

y

sweep y value (double*)

z

sweep z value (double*)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_SetAttributes

int MTK_Object_DimensionAngle_SetAttributes(
			MTK_Object* obj,
			const char* label, const double& tickGap,
			const double& tickOffset, const double& tickExtentSize,
			const double& arrowLength, const double& arrowWidth
			);
		

Description

Set the attributes of a dimension angle object.

Parameters

obj

pointer to an MTK_Object struct

label

the label of the dimension angle (const char*)

tickGap

the tick gap (double)

tickOffset

the tick offset (double)

tickExtentSize

the tick extent size (double)

arrowLength

the length of the arrow head (double)

arrowWidth

the width of the arrow head (double)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_SetOrigin

int MTK_Object_DimensionAngle_SetOrigin(
			MTK_Object* obj,
			const double& x,
			const double& y,
			const double& z
			);
		

Description

Set the origin location of a dimension angle object (the centre of the angle).

Parameters

obj

pointer to an MTK_Object struct

x

origin x value (double)

y

origin y value (double)

z

origin z value (double)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_SetRadius

int MTK_Object_DimensionAngle_SetRadius(
			MTK_Object* obj,
			const double& x,
			const double& y,
			const double& z
			);
		

Description

Set the radius location of a dimension angle object (the start of the angle)

Parameters

obj

pointer to an MTK_Object struct

x

radius x value (double)

y

radius y value (double)

z

radius z value (double)

Return Value

0

success

other

failure

MTK_Object_DimensionAngle_SetSweep

int MTK_Object_DimensionAngle_SetSweep(
			MTK_Object* obj,
			const double& x,
			const double& y,
			const double& z
			);
		

Description

Set the sweep location of a dimension angle object (the end of the angle).

Parameters

obj

pointer to an MTK_Object struct

x

sweep x value (double)

y

sweep y value (double)

z

sweep z value (double)

Return Value

0

success

other

failure