Cheetah Software  1.0
VisualizationData Struct Reference

#include <VisualizationData.h>

+ Collaboration diagram for VisualizationData:

Public Member Functions

void clear ()
 
SphereVisualizationaddSphere ()
 
BlockVisualizationaddBlock ()
 
ArrowVisualizationaddArrow ()
 
ConeVisualizationaddCone ()
 
PathVisualizationaddPath ()
 

Public Attributes

size_t num_paths = 0
 
size_t num_arrows = 0
 
size_t num_cones = 0
 
size_t num_spheres = 0
 
size_t num_blocks = 0
 
SphereVisualization spheres [VISUALIZATION_MAX_ITEMS]
 
BlockVisualization blocks [VISUALIZATION_MAX_ITEMS]
 
ArrowVisualization arrows [VISUALIZATION_MAX_ITEMS]
 
ConeVisualization cones [VISUALIZATION_MAX_ITEMS]
 
PathVisualization paths [VISUALIZATION_MAX_PATHS]
 

Detailed Description

Definition at line 60 of file VisualizationData.h.

Member Function Documentation

ArrowVisualization* VisualizationData::addArrow ( )
inline

Definition at line 87 of file VisualizationData.h.

References VISUALIZATION_MAX_ITEMS.

87  {
89  return &arrows[num_arrows++];
90  }
91  return nullptr;
92  }
ArrowVisualization arrows[VISUALIZATION_MAX_ITEMS]
#define VISUALIZATION_MAX_ITEMS
BlockVisualization* VisualizationData::addBlock ( )
inline

Definition at line 80 of file VisualizationData.h.

References VISUALIZATION_MAX_ITEMS.

80  {
82  return &blocks[num_blocks++];
83  }
84  return nullptr;
85  }
BlockVisualization blocks[VISUALIZATION_MAX_ITEMS]
#define VISUALIZATION_MAX_ITEMS
ConeVisualization* VisualizationData::addCone ( )
inline

Definition at line 94 of file VisualizationData.h.

References VISUALIZATION_MAX_ITEMS.

94  {
96  return &cones[num_cones++];
97  }
98  return nullptr;
99  }
ConeVisualization cones[VISUALIZATION_MAX_ITEMS]
#define VISUALIZATION_MAX_ITEMS
PathVisualization* VisualizationData::addPath ( )
inline

Definition at line 101 of file VisualizationData.h.

References PathVisualization::clear(), and VISUALIZATION_MAX_PATHS.

101  {
103  auto* path = &paths[num_paths++];
104  path->clear();
105  return path;
106  }
107  return nullptr;
108  }
#define VISUALIZATION_MAX_PATHS
PathVisualization paths[VISUALIZATION_MAX_PATHS]

+ Here is the call graph for this function:

SphereVisualization* VisualizationData::addSphere ( )
inline

Definition at line 73 of file VisualizationData.h.

References VISUALIZATION_MAX_ITEMS.

73  {
75  return &spheres[num_spheres++];
76  }
77  return nullptr;
78  }
SphereVisualization spheres[VISUALIZATION_MAX_ITEMS]
#define VISUALIZATION_MAX_ITEMS
void VisualizationData::clear ( )
inline

Definition at line 69 of file VisualizationData.h.

+ Here is the caller graph for this function:

Member Data Documentation

ArrowVisualization VisualizationData::arrows[VISUALIZATION_MAX_ITEMS]

Definition at line 65 of file VisualizationData.h.

BlockVisualization VisualizationData::blocks[VISUALIZATION_MAX_ITEMS]

Definition at line 64 of file VisualizationData.h.

ConeVisualization VisualizationData::cones[VISUALIZATION_MAX_ITEMS]

Definition at line 66 of file VisualizationData.h.

size_t VisualizationData::num_arrows = 0

Definition at line 61 of file VisualizationData.h.

size_t VisualizationData::num_blocks = 0

Definition at line 62 of file VisualizationData.h.

size_t VisualizationData::num_cones = 0

Definition at line 61 of file VisualizationData.h.

size_t VisualizationData::num_paths = 0

Definition at line 61 of file VisualizationData.h.

size_t VisualizationData::num_spheres = 0

Definition at line 61 of file VisualizationData.h.

PathVisualization VisualizationData::paths[VISUALIZATION_MAX_PATHS]

Definition at line 67 of file VisualizationData.h.

SphereVisualization VisualizationData::spheres[VISUALIZATION_MAX_ITEMS]

Definition at line 63 of file VisualizationData.h.


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