OpenMesh
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenMesh::Kernel_OSG::AttribKernelT< MeshItems > Class Template Reference

This class adds the standard properties to the mesh type. More...

#include <OpenMesh/Tools/Kernel_OSG/AttribKernelT.hh>

Inheritance diagram for OpenMesh::Kernel_OSG::AttribKernelT< MeshItems >:
Collaboration diagram for OpenMesh::Kernel_OSG::AttribKernelT< MeshItems >:

Public Types

enum  Attribs { VAttribs = MeshItems::VAttribs, HAttribs = MeshItems::HAttribs, EAttribs = MeshItems::EAttribs, FAttribs = MeshItems::FAttribs }
typedef MeshItems::Vertex Vertex
typedef MeshItems::Halfedge Halfedge
typedef MeshItems::Edge Edge
typedef MeshItems::Face Face
typedef MeshItems::Point Point
typedef MeshItems::Normal Normal
typedef MeshItems::Color Color
typedef MeshItems::TexCoord TexCoord
typedef MeshItems::Scalar Scalar
typedef Attributes::StatusInfo StatusInfo
typedef GenProg::Bool2Type
<(bool)(HAttribs
&Attributes::PrevHalfedge)> 
HasPrevHalfedge
typedef _t2vp< Point >::prop GeoPositions
typedef _t2vn< Normal >::prop GeoNormals
typedef _t2vc< Color >::prop GeoColors
typedef _t2vtc< TexCoord >::prop GeoTexCoords
typedef GenProg::Bool2Type
<(bool)(VAttribs
&Attributes::Normal)> 
HasVertexNormals
typedef GenProg::Bool2Type
<(bool)(VAttribs
&Attributes::Color)> 
HasVertexColors
typedef GenProg::Bool2Type
<(bool)(VAttribs
&Attributes::TexCoord)> 
HasVertexTexCoords
typedef GenProg::Bool2Type
<(bool)(VAttribs
&Attributes::Status)> 
HasVertexStatus
typedef GenProg::Bool2Type
<(bool)(HAttribs
&Attributes::PrevHalfedge)> 
HasPrevHalfedge
typedef GenProg::Bool2Type
<(bool)(HAttribs
&Attributes::Status)> 
HasHalfedgeStatus
typedef GenProg::Bool2Type
<(bool)(EAttribs
&Attributes::Status)> 
HasEdgeStatus
typedef GenProg::Bool2Type
<(bool)(EAttribs
&Attributes::Color)> 
HasEdgeColors
typedef GenProg::Bool2Type
<(bool)(FAttribs
&Attributes::Normal)> 
HasFaceNormals
typedef GenProg::Bool2Type
<(bool)(FAttribs
&Attributes::Color)> 
HasFaceColors
typedef GenProg::Bool2Type
<(bool)(FAttribs
&Attributes::Status)> 
HasFaceStatus
- Public Types inherited from OpenMesh::Kernel_OSG::PropertyKernel< MeshItems::Face::IsTriangle >
typedef FPropHandleT< osg::UInt8 > FPTypesHandle
typedef FPropHandleT< osg::UInt32 > FPLengthsHandle
typedef FPropHandleT< osg::UInt32 > FIndicesHandle
typedef FP::GeoPTypesUI8 GeoPTypes
typedef FP::GeoPLengthsUI32 GeoPLengths
typedef FP::GeoIndicesUI32
< MeshItems::Face::IsTriangle > 
GeoIndices
- Public Types inherited from OpenMesh::BaseKernel
typedef PropertyContainer::iterator prop_iterator
typedef
PropertyContainer::const_iterator 
const_prop_iterator

Public Member Functions

 AttribKernelT (const AttribKernelT &_rhs)
AttribKernelToperator= (const AttribKernelT &_rhs)
GeoPositions::property_ptr_t osg_vpositions ()
GeoNormals::property_ptr_t osg_vnormals ()
GeoColors::property_ptr_t osg_vcolors ()
GeoTexCoords::property_ptr_t osg_vtexcoords ()
GeoColors::property_ptr_t osg_ecolors ()
GeoPTypes::property_ptr_t osg_ptypes ()
GeoPLengths::property_ptr_t osg_plengths ()
GeoIndices::property_ptr_t osg_indices ()
void set_face_types (FaceHandle _fh, GeoPTypes::value_type _t)
void set_face_lengths (FaceHandle _fh, GeoPLengths::value_type _l)
void set_face_indices (FaceHandle _fh, typename GeoIndices::value_type _i)
const Point * points () const
const Point & point (VertexHandle _vh) const
void set_point (VertexHandle _vh, const Point &_p)
const Normal * vertex_normals () const
const Normal & normal (VertexHandle _vh) const
void set_normal (VertexHandle _vh, const Normal &_n)
const Color * vertex_colors () const
const Color & color (VertexHandle _vh) const
void set_color (VertexHandle _vh, const Color &_c)
const TexCoord * texcoords () const
const TexCoord & texcoord (VertexHandle _vh) const
void set_texcoord (VertexHandle _vh, const TexCoord &_t)
const StatusInfostatus (VertexHandle _vh) const
StatusInfostatus (VertexHandle _vh)
const StatusInfostatus (HalfedgeHandle _eh) const
StatusInfostatus (HalfedgeHandle _eh)
const StatusInfostatus (EdgeHandle _eh) const
StatusInfostatus (EdgeHandle _eh)
const Color * edge_colors () const
const Color & color (EdgeHandle _eh) const
void set_color (EdgeHandle _eh, const Color &_c)
const StatusInfostatus (FaceHandle _fh) const
StatusInfostatus (FaceHandle _fh)
const Normal & normal (FaceHandle _fh) const
void set_normal (FaceHandle _fh, const Normal &_n)
const Color & color (FaceHandle _fh) const
void set_color (FaceHandle _fh, const Color &_c)
void request_vertex_normals ()
void request_vertex_colors ()
void request_vertex_texcoords ()
void request_vertex_status ()
void request_halfedge_status ()
void request_edge_status ()
void request_edge_colors ()
void request_face_normals ()
void request_face_colors ()
void request_face_status ()
void release_vertex_normals ()
void release_vertex_colors ()
void release_vertex_texcoords ()
void release_vertex_status ()
void release_halfedge_status ()
void release_edge_status ()
void release_edge_colors ()
void release_face_normals ()
void release_face_colors ()
void release_face_status ()
bool has_vertex_normals () const
bool has_vertex_colors () const
bool has_vertex_texcoords () const
bool has_vertex_status () const
bool has_edge_status () const
bool has_halfedge_status () const
bool has_edge_colors () const
bool has_face_normals () const
bool has_face_colors () const
bool has_face_status () const
osg::GeometryPtr createGeometryPtr ()
bool bind (osg::GeometryPtr &_geo)
- Public Member Functions inherited from OpenMesh::Kernel_OSG::PropertyKernel< MeshItems::Face::IsTriangle >
void stats (void)
- Public Member Functions inherited from OpenMesh::BaseKernel
template<class T >
void copy_property (VPropHandleT< T > &_ph, VertexHandle _vh_from, VertexHandle _vh_to)
 Copies a single property from one mesh element to another (of the same type)
template<class T >
void copy_property (HPropHandleT< T > _ph, HalfedgeHandle _hh_from, HalfedgeHandle _hh_to)
 Copies a single property from one mesh element to another (of the same type)
template<class T >
void copy_property (EPropHandleT< T > _ph, EdgeHandle _eh_from, EdgeHandle _eh_to)
 Copies a single property from one mesh element to another (of the same type)
template<class T >
void copy_property (FPropHandleT< T > _ph, FaceHandle _fh_from, FaceHandle _fh_to)
 Copies a single property from one mesh element to another (of the same type)
void copy_all_properties (VertexHandle _vh_from, VertexHandle _vh_to, bool _copyBuildIn=false)
 Copies all properties from one mesh element to another (of the same type)
void copy_all_properties (HalfedgeHandle _hh_from, HalfedgeHandle _hh_to, bool _copyBuildIn=false)
 Copies all properties from one mesh element to another (of the same type)
void copy_all_properties (EdgeHandle _eh_from, EdgeHandle _eh_to, bool _copyBuildIn=false)
 Copies all properties from one mesh element to another (of the same type)
void copy_all_properties (FaceHandle _fh_from, FaceHandle _fh_to, bool _copyBuildIn=false)
 Copies all properties from one mesh element to another (of the same type)
size_t n_vprops (void) const
size_t n_eprops (void) const
size_t n_hprops (void) const
size_t n_fprops (void) const
size_t n_mprops (void) const
BaseProperty_get_vprop (const std::string &_name)
BaseProperty_get_eprop (const std::string &_name)
BaseProperty_get_hprop (const std::string &_name)
BaseProperty_get_fprop (const std::string &_name)
BaseProperty_get_mprop (const std::string &_name)
const BaseProperty_get_vprop (const std::string &_name) const
const BaseProperty_get_eprop (const std::string &_name) const
const BaseProperty_get_hprop (const std::string &_name) const
const BaseProperty_get_fprop (const std::string &_name) const
const BaseProperty_get_mprop (const std::string &_name) const
BaseProperty_vprop (size_t _idx)
BaseProperty_eprop (size_t _idx)
BaseProperty_hprop (size_t _idx)
BaseProperty_fprop (size_t _idx)
BaseProperty_mprop (size_t _idx)
const BaseProperty_vprop (size_t _idx) const
const BaseProperty_eprop (size_t _idx) const
const BaseProperty_hprop (size_t _idx) const
const BaseProperty_fprop (size_t _idx) const
const BaseProperty_mprop (size_t _idx) const
size_t _add_vprop (BaseProperty *_bp)
size_t _add_eprop (BaseProperty *_bp)
size_t _add_hprop (BaseProperty *_bp)
size_t _add_fprop (BaseProperty *_bp)
size_t _add_mprop (BaseProperty *_bp)
virtual uint n_vertices () const
virtual uint n_halfedges () const
virtual uint n_edges () const
virtual uint n_faces () const
void property_stats (std::ostream &_ostr=std::clog) const
void vprop_stats (std::string &_string) const
void hprop_stats (std::string &_string) const
void eprop_stats (std::string &_string) const
void fprop_stats (std::string &_string) const
void mprop_stats (std::string &_string) const
void vprop_stats (std::ostream &_ostr=std::clog) const
void hprop_stats (std::ostream &_ostr=std::clog) const
void eprop_stats (std::ostream &_ostr=std::clog) const
void fprop_stats (std::ostream &_ostr=std::clog) const
void mprop_stats (std::ostream &_ostr=std::clog) const
prop_iterator vprops_begin ()
prop_iterator vprops_end ()
const_prop_iterator vprops_begin () const
const_prop_iterator vprops_end () const
prop_iterator eprops_begin ()
prop_iterator eprops_end ()
const_prop_iterator eprops_begin () const
const_prop_iterator eprops_end () const
prop_iterator hprops_begin ()
prop_iterator hprops_end ()
const_prop_iterator hprops_begin () const
const_prop_iterator hprops_end () const
prop_iterator fprops_begin ()
prop_iterator fprops_end ()
const_prop_iterator fprops_begin () const
const_prop_iterator fprops_end () const
prop_iterator mprops_begin ()
prop_iterator mprops_end ()
const_prop_iterator mprops_begin () const
const_prop_iterator mprops_end () const
template<class T >
void add_property (VPropHandleT< T > &_ph, const std::string &_name="<vprop>")
 Adds a property.
template<class T >
void add_property (HPropHandleT< T > &_ph, const std::string &_name="<hprop>")
 Adds a property.
template<class T >
void add_property (EPropHandleT< T > &_ph, const std::string &_name="<eprop>")
 Adds a property.
template<class T >
void add_property (FPropHandleT< T > &_ph, const std::string &_name="<fprop>")
 Adds a property.
template<class T >
void add_property (MPropHandleT< T > &_ph, const std::string &_name="<mprop>")
 Adds a property.
template<typename T >
void remove_property (VPropHandleT< T > &_ph)
 Remove a property.
template<typename T >
void remove_property (HPropHandleT< T > &_ph)
 Remove a property.
template<typename T >
void remove_property (EPropHandleT< T > &_ph)
 Remove a property.
template<typename T >
void remove_property (FPropHandleT< T > &_ph)
 Remove a property.
template<typename T >
void remove_property (MPropHandleT< T > &_ph)
 Remove a property.
template<class T >
bool get_property_handle (VPropHandleT< T > &_ph, const std::string &_name) const
 Retrieves the handle to a named property by it's name.
template<class T >
bool get_property_handle (HPropHandleT< T > &_ph, const std::string &_name) const
 Retrieves the handle to a named property by it's name.
template<class T >
bool get_property_handle (EPropHandleT< T > &_ph, const std::string &_name) const
 Retrieves the handle to a named property by it's name.
template<class T >
bool get_property_handle (FPropHandleT< T > &_ph, const std::string &_name) const
 Retrieves the handle to a named property by it's name.
template<class T >
bool get_property_handle (MPropHandleT< T > &_ph, const std::string &_name) const
 Retrieves the handle to a named property by it's name.
template<class T >
PropertyT< T > & property (VPropHandleT< T > _ph)
 Access a property.
template<class T >
const PropertyT< T > & property (VPropHandleT< T > _ph) const
 Access a property.
template<class T >
PropertyT< T > & property (HPropHandleT< T > _ph)
 Access a property.
template<class T >
const PropertyT< T > & property (HPropHandleT< T > _ph) const
 Access a property.
template<class T >
PropertyT< T > & property (EPropHandleT< T > _ph)
 Access a property.
template<class T >
const PropertyT< T > & property (EPropHandleT< T > _ph) const
 Access a property.
template<class T >
PropertyT< T > & property (FPropHandleT< T > _ph)
 Access a property.
template<class T >
const PropertyT< T > & property (FPropHandleT< T > _ph) const
 Access a property.
template<class T >
PropertyT< T > & mproperty (MPropHandleT< T > _ph)
 Access a property.
template<class T >
const PropertyT< T > & mproperty (MPropHandleT< T > _ph) const
 Access a property.
template<class T >
VPropHandleT< T >::reference property (VPropHandleT< T > _ph, VertexHandle _vh)
 Return value of property for an item.
template<class T >
VPropHandleT< T >::const_reference property (VPropHandleT< T > _ph, VertexHandle _vh) const
 Return value of property for an item.
template<class T >
HPropHandleT< T >::reference property (HPropHandleT< T > _ph, HalfedgeHandle _hh)
 Return value of property for an item.
template<class T >
HPropHandleT< T >::const_reference property (HPropHandleT< T > _ph, HalfedgeHandle _hh) const
 Return value of property for an item.
template<class T >
EPropHandleT< T >::reference property (EPropHandleT< T > _ph, EdgeHandle _eh)
 Return value of property for an item.
template<class T >
EPropHandleT< T >::const_reference property (EPropHandleT< T > _ph, EdgeHandle _eh) const
 Return value of property for an item.
template<class T >
FPropHandleT< T >::reference property (FPropHandleT< T > _ph, FaceHandle _fh)
 Return value of property for an item.
template<class T >
FPropHandleT< T >::const_reference property (FPropHandleT< T > _ph, FaceHandle _fh) const
 Return value of property for an item.
template<class T >
MPropHandleT< T >::reference property (MPropHandleT< T > _ph)
 Return value of property for an item.
template<class T >
MPropHandleT< T >::const_reference property (MPropHandleT< T > _ph) const
 Return value of property for an item.

Static Public Member Functions

static bool has_prev_halfedge ()

Protected Types

typedef MeshItems::Face::IsTriangle IsTriMesh
typedef PropertyKernel< IsTriMesh > Base
typedef Base::FPTypesHandle FPTypesHandle
typedef Base::FPLengthsHandle FPLengthsHandle
typedef Base::FIndicesHandle FIndicesHandle

Additional Inherited Members

- Protected Member Functions inherited from OpenMesh::Kernel_OSG::PropertyKernel< MeshItems::Face::IsTriangle >
VPropHandleT< T > add_vpositions (const T &_t, const std::string &_n)
VPropHandleT< T > add_vnormals (const T &_t, const std::string &_n)
VPropHandleT< T > add_vcolors (const T &_t, const std::string &_n)
VPropHandleT< T > add_vtexcoords (const T &_t, const std::string &_n)
FPTypesHandle add_fptypes ()
FPLengthsHandle add_fplengths ()
FIndicesHandle add_findices (FPTypesHandle _pht, FPLengthsHandle _phl)
_t2vp< T >::prop & vpositions (VPropHandleT< T > _ph)
const _t2vp< T >::prop & vpositions (VPropHandleT< T > _ph) const
T & vpositions (VPropHandleT< T > _ph, VertexHandle _vh)
const T & vpositions (VPropHandleT< T > _ph, VertexHandle _vh) const
_t2vn< T >::prop & vnormals (VPropHandleT< T > _ph)
const _t2vn< T >::prop & vnormals (VPropHandleT< T > _ph) const
T & vnormals (VPropHandleT< T > _ph, VertexHandle _vh)
const T & vnormals (VPropHandleT< T > _ph, VertexHandle _vh) const
_t2vc< T >::prop & vcolors (VPropHandleT< T > _ph)
const _t2vc< T >::prop & vcolors (VPropHandleT< T > _ph) const
T & vcolors (VPropHandleT< T > _ph, VertexHandle _vh)
const T & vcolors (VPropHandleT< T > _ph, VertexHandle _vh) const
_t2vtc< T >::prop & vtexcoords (VPropHandleT< T > _ph)
const _t2vtc< T >::prop & vtexcoords (VPropHandleT< T > _ph) const
T & vtexcoords (VPropHandleT< T > _ph, VertexHandle _vh)
const T & vtexcoords (VPropHandleT< T > _ph, VertexHandle _vh) const
GeoPTypesfptypes (FPTypesHandle _ph)
const GeoPTypesfptypes (FPTypesHandle _ph) const
FPTypesHandle::value_type & fptypes (FPTypesHandle _ph, FaceHandle _fh)
const FPTypesHandle::value_type & fptypes (FPTypesHandle _ph, FaceHandle _fh) const
GeoPLengthsfplengths (FPLengthsHandle _ph)
const GeoPLengthsfplengths (FPLengthsHandle _ph) const
FPLengthsHandle::value_type & fplengths (FPLengthsHandle _ph, FaceHandle _fh)
const FPLengthsHandle::value_type & fplengths (FPLengthsHandle _ph, FaceHandle _fh) const
GeoIndicesfindices (FIndicesHandle _ph)
const GeoIndicesfindices (FIndicesHandle _ph) const
FIndicesHandle::value_type & findices (FIndicesHandle _ph, FaceHandle _fh)
const FIndicesHandle::value_type & findices (FIndicesHandle _ph, FaceHandle _fh) const

Detailed Description

template<class MeshItems>
class OpenMesh::Kernel_OSG::AttribKernelT< MeshItems >

This class adds the standard properties to the mesh type.


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

acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .