22 #ifndef __vtkCollections_h
23 #define __vtkCollections_h
27 #include <vtkOpenGL.h>
31 #include <octomap/AbstractOcTree.h>
32 #include <octomap/OcTreeBase.h>
33 #include <octomap/octomap_types.h>
34 #include <octomap/ColorOcTree.h>
35 #include <octovis/ColorOcTreeDrawer.h>
36 #include <octovis/OcTreeRecord.h>
51 void PrintSelf(ostream& os, vtkIndent indent);
53 void on_obj_collection_data(
const char* data);
54 void on_link_collection_data(
const char* data);
55 void on_points_collection_data(
const char* data);
56 void on_reset_collections_data(
const char* data);
60 virtual void ReleaseGraphicsResources(vtkWindow*);
61 virtual int RenderOpaqueGeometry(vtkViewport*);
62 virtual int RenderOverlay(vtkViewport*);
63 virtual int RenderTranslucentPolygonalGeometry(vtkViewport*);
64 virtual int HasTranslucentPolygonalGeometry();
70 int getCollectionsSize();
71 int getCollectionsId(
int mapIndex);
72 std::string getCollectionsName(
int mapIndex);
73 int getCollectionsType(
int mapIndex);
74 bool getCollectionsShow(
int mapIndex);
76 void setEnabled(
int id,
bool show);
77 void removeIdFromCollections(
int id);
79 void setRangeStart(
double rangeStart);
80 void setRangeEnd(
double rangeEnd);
81 void setAlphaPoints(
double alphaPoints);
83 void setFillScans(
bool colorByTime);
85 void setPointWidth(
double pointWidth);
86 void setPoseWidth(
double poseWidth);
87 void setColorPoses(
bool colorPoses);
89 void setColorByTime(
bool colorByTime);
91 void setElevationByTime(
bool elevationByTime);
92 void setElevationByCollection(
bool elevationByCollection);
93 void setMaxElevation(
double maxElevation);
105 template <
class MyCollection>
106 void on_collection_data(
const typename MyCollection::my_vs_collection_t *msg);
108 void calculate_ranges(int64_t& range_start, int64_t& range_end);
110 double time_elevation(int64_t
id,
double z,
int collid);
#define VTKDRCFILTERS_EXPORT