Robotran C Documentation
Public Attributes | List of all members
UpdateShape Struct Reference

Define modifications to be done on a basic shape. More...

#include <mbs_saver.h>

Public Attributes

int on_base
 True (1) if the shape is on the basebody. More...
 
char * body_name
 Name of the body with the shape, disregarded if on_base is true. More...
 
char * shape_name
 Name of the shape in the shape list. More...
 
int shape_nature
 Indicate if the shape is a box, cylinder, cone or sphere: More...
 
double * size
 Size, SHAPE_BOX only, along x, y, z. Set to NULL to not update it. More...
 
double * radius
 Radius, except for SHAPE_BOX, of the shape. Set to NULL to not update it. More...
 
double * height
 Height, except for SHAPE_BOX and SHAPE_SPHERE, of the shape. More...
 
double * position
 Position (x, y, z) of the shape, Set to NULL to not update it. More...
 
double * scale
 Scale (x, y, z) of the shape, Set to NULL to not update it. More...
 
double * rotation
 Rotation (around x, y, z) of the inline, Set to NULL to not update it. More...
 
double transparency
 Transparency (1 is invisible, 0 is fully visible) of the inline, Set to negative value to not update it. More...
 
int visible
 Flag to show the shape (1) or hide it (0). Set to -1 to not update it. More...
 
struct UpdateShapenext
 Pointer to next shape to be updated. More...
 

Detailed Description

Define modifications to be done on a basic shape.

Member Data Documentation

◆ body_name

char* body_name

Name of the body with the shape, disregarded if on_base is true.

◆ height

double* height

Height, except for SHAPE_BOX and SHAPE_SPHERE, of the shape.

Set to NULL to not update it.

◆ next

struct UpdateShape* next

Pointer to next shape to be updated.

◆ on_base

int on_base

True (1) if the shape is on the basebody.

◆ position

double* position

Position (x, y, z) of the shape, Set to NULL to not update it.

◆ radius

double* radius

Radius, except for SHAPE_BOX, of the shape. Set to NULL to not update it.

◆ rotation

double* rotation

Rotation (around x, y, z) of the inline, Set to NULL to not update it.

◆ scale

double* scale

Scale (x, y, z) of the shape, Set to NULL to not update it.

◆ shape_name

char* shape_name

Name of the shape in the shape list.

In case of multiple occurrence, the first is considered.

◆ shape_nature

int shape_nature

Indicate if the shape is a box, cylinder, cone or sphere:

  • SHAPE_BOX
  • SHAPE_CYLINDER
  • SHAPE_CONE
  • SHAPE_SPHERE

◆ size

double* size

Size, SHAPE_BOX only, along x, y, z. Set to NULL to not update it.

◆ transparency

double transparency

Transparency (1 is invisible, 0 is fully visible) of the inline, Set to negative value to not update it.

◆ visible

int visible

Flag to show the shape (1) or hide it (0). Set to -1 to not update it.


The documentation for this struct was generated from the following file: