22 #ifndef __vtkOctomap_h
23 #define __vtkOctomap_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 UpdateOctomapData(
const char* data);
55 void setAlphaOccupied(
double alphaOccupied);
56 void changeTreeDepth(
int depth);
57 void setColorMode (
int colorMode);
58 void enableOctreeStructure (
bool enabled);
59 void enableOcTreeCells (
bool enabled);
60 void enableFreespace (
bool enabled);
64 virtual void ReleaseGraphicsResources(vtkWindow*);
65 virtual int RenderOpaqueGeometry(vtkViewport*);
66 virtual int RenderOverlay(vtkViewport*);
67 virtual int RenderTranslucentPolygonalGeometry(vtkViewport*);
68 virtual int HasTranslucentPolygonalGeometry();
72 static const unsigned int DEFAULT_OCTREE_ID = 0;
75 void addOctree(octomap::AbstractOcTree* tree,
int id, octomap::pose6d origin);
76 void addOctree(octomap::AbstractOcTree* tree,
int id);
77 bool getOctreeRecord(
int id, octomap::OcTreeRecord*& otr);
86 void openOcTree(std::string filename);
89 void openTree(std::string filename);
91 void parseTree(std::string datastream_string);
92 void parseOcTree(std::string datastream_string);
97 vtkInternal* Internal;
#define VTKDRCFILTERS_EXPORT