API Documentation
Loading...
Searching...
No Matches
VertexColorIterator.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/Model.h>
3#include <NDEVR/Geometry.h>
4#include <NDEVR/Material.h>
5#include <NDEVR/DesignParameter.h>
6#include <NDEVR/RGBColor.h>
7namespace NDEVR
8{
10 {
11 public:
12 VertexColorIterator(const Model& model, const Geometry& geo, const Material& material, const UVType& uv_type = UVType::e_KD);
13 RGBColor operator[](uint04 index) const;
14 BitFlag flag(uint04 index) const
15 {
16 const BitFlag flag = m_flag_column.get<uint01>(m_vertex_offset + index);
17 return flag;
18 }
19 uint04 size() const
20 {
21 return m_vertex_count;
22 }
23 protected:
27
39 };
40}
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
A bitset that stores 8 bits (elements with only two possible values: 0 or 1, true or false,...
Definition BitFlag.hpp:68
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition DesignParameter.h:42
Definition Geometry.h:64
Definition Material.h:45
UVMode
Definition Material.h:68
Definition Matrix.hpp:173
Definition Model.h:54
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Definition TableColumn.h:68
Definition VertexColorIterator.h:10
const TableColumn * m_data_column
Definition VertexColorIterator.h:25
const Material::UVMode m_uv_mode
Definition VertexColorIterator.h:28
DesignParameter m_parameter
Definition VertexColorIterator.h:33
Buffer< RGBColor > m_palette_colors
Definition VertexColorIterator.h:38
const uint04 m_vertex_offset
Definition VertexColorIterator.h:30
const uint04 m_vertex_count
Definition VertexColorIterator.h:31
Matrix< fltp08 > m_transform
Definition VertexColorIterator.h:24
uint04 size() const
Definition VertexColorIterator.h:19
fltp08 m_max_value
Definition VertexColorIterator.h:37
const TableColumn & m_flag_column
Definition VertexColorIterator.h:26
BitFlag flag(uint04 index) const
Definition VertexColorIterator.h:14
RGBColor m_constant_color
Definition VertexColorIterator.h:32
fltp08 m_min_value
Definition VertexColorIterator.h:35
const VertexProperty m_vertex_property
Definition VertexColorIterator.h:29
Material m_material
Definition VertexColorIterator.h:34
fltp08 m_mid_value
Definition VertexColorIterator.h:36
Definition ACIColor.h:37
VertexProperty
Definition DesignObjectBase.h:52
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
UVType
Definition DesignObjectBase.h:127