Dimension Radius Functions

Functions to get and set attributes, start/end positions, and normal of dimension radius objects.

MTK_Object_DimensionRadius_GetAttributes()

Get the attributes of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_GetAttributes(
    MTK_Object* obj,
    char* label, double* tickGap,
    double* tickOffset, double* tickExtentSize,
    double* arrowLength, double* arrowWidth
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • label: Buffer of length MTK_BUFFER_SIZE to receive the label of the dimension radius.
  • tickGap: Tick gap.
  • tickOffset: Tick offset.
  • tickExtentSize: Tick extent size.
  • arrowLength: Length of the arrow head.
  • arrowWidth: Width of the arrow head.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_GetEnd()

Get the end location of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_GetEnd(
    MTK_Object* obj,
    double* x, double* y, double* z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: End x value.
  • y: End y value.
  • z: End z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_GetNormal()

Get the normal of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_GetNormal(
    MTK_Object* obj,
    double* x, double* y, double* z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Normal x value.
  • y: Normal y value.
  • z: Normal z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_GetStart()

Get the start location of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_GetStart(
    MTK_Object* obj,
    double* x, double* y, double* z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Start x value.
  • y: Start y value.
  • z: Start z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_SetAttributes()

Set the attributes of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_SetAttributes(
    MTK_Object* obj,
    const char* label, const double& tickGap,
    const double& tickOffset, const double& tickExtentSize,
    const double& arrowLength, const double& arrowWidth
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • label: Label of the dimension radius.
  • tickGap: Tick gap.
  • tickOffset: Tick offset.
  • tickExtentSize: Tick extent size.
  • arrowLength: Length of the arrow head.
  • arrowWidth: Width of the arrow head.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_SetEnd()

Set the end location of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_SetEnd(
    MTK_Object* obj,
    const double& x,
    const double& y,
    const double& z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: End x value.
  • y: End y value.
  • z: End z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_SetNormal()

Set the normal of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_SetNormal(
    MTK_Object* obj,
    const double& x,
    const double& y,
    const double& z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Normal x value.
  • y: Normal y value.
  • z: Normal z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionRadius_SetStart()

Set the start location of a dimension radius object.

Signature
int MTK_Object_DimensionRadius_SetStart(
    MTK_Object* obj,
    const double& x,
    const double& y,
    const double& z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Start x value.
  • y: Start y value.
  • z: Start z value.
Returns

0 on success; any other value indicates failure.