cgv
Loading...
Searching...
No Matches
cgv::media::mesh::c_slice_info< T, P > Struct Template Reference

data structure for the information that is cached per volume slice by the cuberille algorithm More...

#include <cuberille.h>

Public Member Functions

 c_slice_info (unsigned int _resx, unsigned int _resy)
 
void init ()
 
int linear_index (int x, int y) const
 
bool flag (int x, int y) const
 
void set_flag (int x, int y, bool flag)
 
const int & index (int x, int y) const
 
void set_index (int x, int y, int idx)
 

Public Attributes

unsigned resx
 
unsigned resy
 
unsigned nr_vertices
 
std::vector< bool > flags
 
std::vector< int > indices
 

Detailed Description

template<typename T, class P>
struct cgv::media::mesh::c_slice_info< T, P >

data structure for the information that is cached per volume slice by the cuberille algorithm

Definition at line 34 of file cuberille.h.

Constructor & Destructor Documentation

◆ c_slice_info()

template<typename T , class P >
cgv::media::mesh::c_slice_info< T, P >::c_slice_info ( unsigned int  _resx,
unsigned int  _resy 
)
inline

Definition at line 41 of file cuberille.h.

Member Function Documentation

◆ flag()

template<typename T , class P >
bool cgv::media::mesh::c_slice_info< T, P >::flag ( int  x,
int  y 
) const
inline

Definition at line 55 of file cuberille.h.

◆ index()

template<typename T , class P >
const int & cgv::media::mesh::c_slice_info< T, P >::index ( int  x,
int  y 
) const
inline

Definition at line 59 of file cuberille.h.

◆ init()

template<typename T , class P >
void cgv::media::mesh::c_slice_info< T, P >::init ( )
inline

Definition at line 48 of file cuberille.h.

◆ linear_index()

template<typename T , class P >
int cgv::media::mesh::c_slice_info< T, P >::linear_index ( int  x,
int  y 
) const
inline

Definition at line 53 of file cuberille.h.

◆ set_flag()

template<typename T , class P >
void cgv::media::mesh::c_slice_info< T, P >::set_flag ( int  x,
int  y,
bool  flag 
)
inline

Definition at line 57 of file cuberille.h.

◆ set_index()

template<typename T , class P >
void cgv::media::mesh::c_slice_info< T, P >::set_index ( int  x,
int  y,
int  idx 
)
inline

Definition at line 60 of file cuberille.h.

Member Data Documentation

◆ flags

template<typename T , class P >
std::vector<bool> cgv::media::mesh::c_slice_info< T, P >::flags

Definition at line 38 of file cuberille.h.

◆ indices

template<typename T , class P >
std::vector<int> cgv::media::mesh::c_slice_info< T, P >::indices

Definition at line 39 of file cuberille.h.

◆ nr_vertices

template<typename T , class P >
unsigned cgv::media::mesh::c_slice_info< T, P >::nr_vertices

Definition at line 37 of file cuberille.h.

◆ resx

template<typename T , class P >
unsigned cgv::media::mesh::c_slice_info< T, P >::resx

Definition at line 36 of file cuberille.h.

◆ resy

template<typename T , class P >
unsigned cgv::media::mesh::c_slice_info< T, P >::resy

Definition at line 36 of file cuberille.h.


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