20 SceneNodeAnnotation() : triangles(nullptr), edges(nullptr), edgesHighlighted(nullptr), vertices(nullptr), verticesHighlighted(nullptr) {};
29 const std::vector<std::array<double, 3>> &points,
30 const std::vector<std::array<double, 3>> &points_rgb,
31 const std::vector<std::array<double, 3>> &triangle_p1,
32 const std::vector<std::array<double, 3>> &triangle_p2,
33 const std::vector<std::array<double, 3>> &triangle_p3,
34 const std::vector<std::array<double, 3>> &triangle_rgb);
40 osg::Node * createOSGNodeFromTriangles(
const std::vector<std::array<double, 3>> &triangle_p1,
41 const std::vector<std::array<double, 3>> &triangle_p2,
42 const std::vector<std::array<double, 3>> &triangle_p3,
43 const std::vector<std::array<double, 3>> &triangle_rgb);
44 void calculateCrossProduct(
double vector1[3],
double vector2[3],
double normal[3]);
45 void createOSGNodeFromEdges(
const double colorRGB[3],
46 const std::vector<std::array<double, 3>> &triangle_p1,
47 const std::vector<std::array<double, 3>> &triangle_p2,
48 const std::vector<std::array<double, 3>> &triangle_p3,
49 osg::Node *&edgesNode, osg::Node *&edgesHighlightedNode);
50 osg::Node *buildEdgesOSGNode(
unsigned long long nEdges, osg::Vec3Array *vertices,
double r,
double g,
double b,
bool depthTest);
51 void createOSGNodeFromVertices(
const std::vector<std::array<double, 3>> &points,
52 const std::vector<std::array<double, 3>> &points_rgb,
53 osg::Node *&verticesNode, osg::Node *&verticesHighlightedNode);
57 osg::Node *edgesHighlighted;
59 osg::Node *verticesHighlighted;
void initializeFromData(const double edgeColorRGB[3], const std::vector< std::array< double, 3 > > &points, const std::vector< std::array< double, 3 > > &points_rgb, const std::vector< std::array< double, 3 > > &triangle_p1, const std::vector< std::array< double, 3 > > &triangle_p2, const std::vector< std::array< double, 3 > > &triangle_p3, const std::vector< std::array< double, 3 > > &triangle_rgb)
Definition SceneNodeAnnotation.cpp:162