Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::pointcloud::Vertex< Scalar > Class Template Reference

The Vertex type used by the PointCloudT class. More...

#include <vclib/meshes/point_cloud.h>

Inheritance diagram for vcl::pointcloud::Vertex< Scalar >:

Additional Inherited Members

- Public Types inherited from vcl::comp::Position< P, ParentElemType, OPT >
using PositionType = P
 Expose the type of the Position.
 
- Public Types inherited from vcl::comp::Normal< P, ParentElemType, OPT >
using NormalType = P
 Expose the type of the Normal.
 
- Public Types inherited from vcl::comp::Color< ParentElemType, OPT >
using ColorType = vcl::Color
 Expose the type of the Color.
 
- Public Types inherited from vcl::comp::Quality< Scalar, ParentElemType, OPT >
using QualityType = Scalar
 Exposes the scalar used as Quality type.
 
- Public Types inherited from vcl::comp::TexCoord< Scalar, ParentElemType, OPT >
using TexCoordType = vcl::TexCoordIndexed< Scalar >
 Expose the type of the TexCoord.
 
- Public Types inherited from vcl::Element< ELEM_ID, MeshType, Comps >
using Components = TypeWrapper< Comps... >
 Components is an alias to a vcl::TypeWrapper that wraps all the Components from which the Element inherits (Comps).
 
using ParentMeshType = MeshType
 
- Public Types inherited from vcl::comp::ParentMeshPointer< MeshType >
using ParentMeshType = MeshType
 
- Public Member Functions inherited from vcl::comp::BitFlags< ParentElemType, OPT >
 BitFlags ()
 Initializes the bits to false.
 
bool deleted () const
 Returns whether the current Element is deleted or not.
 
int exportFlagsToVCGFormat () const
 Returns the bit flags of this element in the format of the VCG library.
 
void importFlagsFromVCGFormat (int f)
 Sets all the flags of this element to the values contained in the integer input parameter, that represents the bit flags of the VCG library.
 
BitProxy< FTonBorder ()
 Accesses the 'onBorder' bit of this Element, returning a reference to it.
 
bool onBorder () const
 Returns whether the current Element is on border or not.
 
void resetBitFlags ()
 Unsets all the flags of this Element and sets them to false, except the deleted flag, which needs to be manually reset.
 
BitProxy< FTselected ()
 Accesses the 'selected' bit of this Element, returning a reference to it.
 
bool selected () const
 Returns whether the current Element is selected or not.
 
BitProxy< FTuserBit (uint bit)
 Returns the boolean value of the user bit of this Element given in input. The bit is checked to be less than the total number of assigned user bits, which in this class is 4.
 
bool userBit (uint bit) const
 Returns a reference to the value of the user bit of this Element given in input. The bit is checked to be less than the total number of assigned user bits, which in this class is 4.
 
BitProxy< FTvisited ()
 Accesses the 'visited' bit of this Element, returning a reference to it.
 
bool visited () const
 Returns whether the current Element has been visited or not.
 
- Public Member Functions inherited from vcl::comp::Position< P, ParentElemType, OPT >
P & position ()
 Returns a reference of the position of the element.
 
const P & position () const
 Returns a const reference of the position of the element.
 
 Position ()=default
 Initilizes the Position to (0, 0, 0).
 
- Public Member Functions inherited from vcl::comp::Normal< P, ParentElemType, OPT >
P & normal ()
 Returns a reference of the normal of the element.
 
const P & normal () const
 Returns a const reference of the normal of the element.
 
 Normal ()=default
 Initilizes the Normal to (0, 0, 0).
 
- Public Member Functions inherited from vcl::comp::Color< ParentElemType, OPT >
vcl::Colorcolor ()
 Returns a reference pf the color of the element.
 
const vcl::Colorcolor () const
 Returns a const reference of the color of the element.
 
 Color ()=default
 Initilizes the color to black (with alpha 255).
 
- Public Member Functions inherited from vcl::comp::Quality< Scalar, ParentElemType, OPT >
QualityTypequality ()
 Returns a reference of the quality of the element.
 
const QualityTypequality () const
 Returns a const reference of the quality of the element.
 
 Quality ()=default
 Initilizes the Quality value to 0.
 
- Public Member Functions inherited from vcl::comp::TexCoord< Scalar, ParentElemType, OPT >
TexCoordTypetexCoord ()
 Returns a reference of the tex coord of the element.
 
const TexCoordTypetexCoord () const
 Returns a const reference of the tex coord of the element.
 
 TexCoord ()=default
 Initilizes the Texture Coordinate to (0, 0).
 
- Public Member Functions inherited from vcl::comp::Mark< ParentElemType, OPT >
void decrementMark ()
 Decrements the mark of the current element/mesh by 1.
 
template<typename E >
bool hasSameMark (const E &e) const
 Checks if the current element/mesh has the same mark of the given input element/mesh e.
 
void incrementMark ()
 Increments the mark of the current element/mesh by 1.
 
 Mark ()
 Constructor that initializes the mark to 0.
 
int mark () const
 Returns the value of the mark.
 
void resetMark ()
 Resets the mark to 0.
 
- Public Member Functions inherited from vcl::comp::CustomComponents< ParentElemType >
template<typename CompType >
requires (!IS_VERTICAL)
void addCustomComponent (const std::string &compName, const CompType &value=CompType())
 
template<typename CompType >
CompTypecustomComponent (const std::string &compName)
 Returns the reference to the custom component of the given name having the type given as template argument.
 
template<typename CompType >
const CompTypecustomComponent (const std::string &compName) const
 Returns the const reference to the custom component of the given name having the type given as template argument.
 
template<typename CompType >
std::vector< std::string > customComponentNamesOfType () const
 Returns a std::vector of std::strings containing the names of the custom components of the type given as template argument.
 
 CustomComponents ()=default
 Initilizes an empty container of custom components.
 
std::type_index customComponentType (const std::string &compName) const
 Returns the std::type_index of the custom component of the given name.
 
void deleteCustomComponent (const std::string &compName)
 
template<typename CompType >
requires (!IS_VERTICAL)
void deserializeCustomComponentsOfType (std::istream &is)
 
bool hasCustomComponent (const std::string &compName) const
 Returns true if the element has a custom component with the given name, false otherwise. The type of the custom component is not checked.
 
template<typename CompType >
bool isCustomComponentOfType (const std::string &compName) const
 Returns true if the custom component of the given name is of the type given as template argument, false otherwise.
 
template<typename CompType >
requires (!IS_VERTICAL)
void serializeCustomComponentsOfType (std::ostream &os) const
 
- Public Member Functions inherited from vcl::Vertex< PointCloudT< Scalar >, vert::BitFlags, vert::Position3< Scalar >, vert::Normal3< Scalar >, vert::OptionalColor< Vertex< Scalar > >, vert::OptionalQuality< Scalar, Vertex< Scalar > >, vert::OptionalTexCoord< Scalar, Vertex< Scalar > >, vert::OptionalMark< Vertex< Scalar > >, vert::CustomComponents< Vertex< Scalar > > >
 Vertex ()=default
 Empty constructor.
 
- Public Member Functions inherited from vcl::Element< ELEM_ID, MeshType, Comps >
template<uint COMP_ID>
autocomponent ()
 
template<uint COMP_ID>
const autocomponent () const
 
void deserialize (std::istream &in)
 
template<typename ElType >
void importFrom (const ElType &v, bool importRefs=true)
 
uint index () const
 
void serialize (std::ostream &out) const
 
- Public Member Functions inherited from vcl::comp::ParentMeshPointer< MeshType >
ParentMeshPointeroperator= (const ParentMeshPointer< MeshType > &)
 
constexpr MeshType * parentMesh ()
 
constexpr const MeshType * parentMesh () const
 
 ParentMeshPointer (const ParentMeshPointer< MeshType > &)
 
 ParentMeshPointer (ParentMeshPointer< MeshType > &&)
 
- Static Public Attributes inherited from vcl::comp::BitFlags< ParentElemType, OPT >
static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT
 Static number of bits that can have custom meanings to the user.
 
- Static Public Attributes inherited from vcl::comp::CustomComponents< ParentElemType >
static const uint COMPONENT_ID = CompId::CUSTOM_COMPONENTS
 The ID of component.
 
- Static Public Attributes inherited from vcl::Element< ELEM_ID, MeshType, Comps >
static const uint ELEMENT_ID = ELEM_ID
 
- Protected Member Functions inherited from vcl::comp::BitFlags< ParentElemType, OPT >
BitProxy< FTdeletedBit ()
 
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::Position< P, ParentElemType, OPT >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &v, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::Normal< P, ParentElemType, OPT >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::Color< ParentElemType, OPT >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::Quality< Scalar, ParentElemType, OPT >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::TexCoord< Scalar, ParentElemType, OPT >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::Mark< ParentElemType, OPT >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::CustomComponents< ParentElemType >
void deserialize (std::istream &is)
 
template<typename Element >
void importFrom (const Element &e, bool=true)
 
void serialize (std::ostream &os) const
 
- Protected Member Functions inherited from vcl::comp::ParentMeshPointer< MeshType >
void setParentMesh (void *parentMesh)
 

Detailed Description

template<typename Scalar>
class vcl::pointcloud::Vertex< Scalar >

The Vertex type used by the PointCloudT class.

Template Parameters
ScalarThe scalar type used for the mesh.

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