OMToolkit 1.0 The polygonal mesh processing tool.

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OMDirectionsGeo.h
Go to the documentation of this file.
1 //==============================================================================
14 #ifndef _OM_DIRECTIONS_GEO_H_
15 #define _OM_DIRECTIONS_GEO_H_
16
17 #include <osg/MatrixTransform>
18 #include <osg/Projection>
19
20 #include <OMToolkit\OMTypes.h>
21 #include <OpenMesh\Core\Utils\Property.hh>
22 #include <osg/Geometry>
23
24 namespace osg
25 {
31 template <class Mesh, class Vector>
32 class OMDirectionsGeometry : public Geometry
33 {
34 protected:
38 typedef typename Mesh::Normal VectorT;
39
43 typedef typename VectorT::value_type ScalarT;
44
45 public:
55 OMDirectionsGeometry(Mesh &mesh, OpenMesh::VPropHandleT<Vector> handle, ScalarT norm = 1.0, Vec4f defaultColor = Vec4f(1.0, 1.0, 1.0, 1.0));
64 OMDirectionsGeometry(Mesh &mesh, OpenMesh::FPropHandleT<Vector> handle, ScalarT norm = 1.0, Vec4f defaultColor = Vec4f(1.0, 1.0, 1.0, 1.0));
65
66 protected:
67 }; // class OMDirectionGeo
68
69 #include <OMToolkitOSG/OMDirectionsGeo.hxx>
70 } // namespace osg
71
72 #endif