cgv
cgv::media::colored_model Class Reference

#include <colored_model.h>

Inheritance diagram for cgv::media::colored_model:
cgv::media::color_storage_types cgv::media::mesh::simple_mesh_base cgv::media::mesh::simple_mesh< T > cgv::media::mesh::simple_mesh< float >

Public Types

typedef color< float, RGB > rgb
 define supported color types
 

Public Member Functions

 colored_model ()
 construct colored model
 
 colored_model (const colored_model &cm)
 copy constructur
 
colored_modeloperator= (const colored_model &cm)
 assignment operator
 
virtual ~colored_model ()
 destruct colored model
 

Protected Attributes

abst_color_storagecolor_storage_ptr
 pointer to color storage
 

Detailed Description

coordinate type independent base class of simple mesh data structure that handles indices and colors.

Member Function Documentation

◆ ensure_colors()

void cgv::media::colored_model::ensure_colors ( ColorType  _color_type,
size_t  nr_colors = -1 
)

ensure that colors are allocated and of given storage type

Only in case of new allocation, the second parameter is used to define the number of colors


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