cgv
Loading...
Searching...
No Matches
cgv::media::mesh::dc_slice_info< T > Struct Template Reference

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

#include <dual_contouring.h>

Public Types

typedef cgv::math::qem< T > qem_type
 
typedef cgv::math::fvec< T, 3 > pnt_type
 

Public Member Functions

 dc_slice_info (unsigned int _resx, unsigned int _resy)
 
void init ()
 
bool flag (int x, int y) const
 
const T & value (int x, int y) const
 
T & value (int x, int y)
 
void set_value (int x, int y, T value, T iso_value)
 set value and flag at once
 
const int & index (int x, int y) const
 
int & index (int x, int y)
 
const qem_typeget_qem (int x, int y) const
 
qem_typeref_qem (int x, int y)
 
int count (int x, int y) const
 
int & count (int x, int y)
 
const pnt_typecenter (int x, int y) const
 
pnt_typecenter (int x, int y)
 
const cell_info< T > & info (int x, int y) const
 
cell_info< T > & info (int x, int y)
 

Public Attributes

unsigned int resx
 
unsigned int resy
 
std::vector< T > values
 
std::vector< bool > flags
 
std::vector< int > indices
 
std::vector< cell_info< T > > cell_infos
 

Detailed Description

template<typename T>
struct cgv::media::mesh::dc_slice_info< T >

data structure for the information that is cached per volume slice

Definition at line 26 of file dual_contouring.h.

Member Typedef Documentation

◆ pnt_type

template<typename T >
typedef cgv::math::fvec<T,3> cgv::media::mesh::dc_slice_info< T >::pnt_type

Definition at line 33 of file dual_contouring.h.

◆ qem_type

template<typename T >
typedef cgv::math::qem<T> cgv::media::mesh::dc_slice_info< T >::qem_type

Definition at line 32 of file dual_contouring.h.

Constructor & Destructor Documentation

◆ dc_slice_info()

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

Definition at line 36 of file dual_contouring.h.

Member Function Documentation

◆ center() [1/2]

template<typename T >
pnt_type & cgv::media::mesh::dc_slice_info< T >::center ( int  x,
int  y 
)
inline

Definition at line 75 of file dual_contouring.h.

◆ center() [2/2]

template<typename T >
const pnt_type & cgv::media::mesh::dc_slice_info< T >::center ( int  x,
int  y 
) const
inline

Definition at line 74 of file dual_contouring.h.

◆ count() [1/2]

template<typename T >
int & cgv::media::mesh::dc_slice_info< T >::count ( int  x,
int  y 
)
inline

Definition at line 72 of file dual_contouring.h.

◆ count() [2/2]

template<typename T >
int cgv::media::mesh::dc_slice_info< T >::count ( int  x,
int  y 
) const
inline

Definition at line 71 of file dual_contouring.h.

◆ flag()

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

Definition at line 54 of file dual_contouring.h.

◆ get_qem()

template<typename T >
const qem_type & cgv::media::mesh::dc_slice_info< T >::get_qem ( int  x,
int  y 
) const
inline

Definition at line 68 of file dual_contouring.h.

◆ index() [1/2]

template<typename T >
int & cgv::media::mesh::dc_slice_info< T >::index ( int  x,
int  y 
)
inline

Definition at line 66 of file dual_contouring.h.

◆ index() [2/2]

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

Definition at line 65 of file dual_contouring.h.

◆ info() [1/2]

template<typename T >
cell_info< T > & cgv::media::mesh::dc_slice_info< T >::info ( int  x,
int  y 
)
inline

Definition at line 78 of file dual_contouring.h.

◆ info() [2/2]

template<typename T >
const cell_info< T > & cgv::media::mesh::dc_slice_info< T >::info ( int  x,
int  y 
) const
inline

Definition at line 77 of file dual_contouring.h.

◆ init()

template<typename T >
void cgv::media::mesh::dc_slice_info< T >::init ( )
inline

Definition at line 44 of file dual_contouring.h.

◆ ref_qem()

template<typename T >
qem_type & cgv::media::mesh::dc_slice_info< T >::ref_qem ( int  x,
int  y 
)
inline

Definition at line 69 of file dual_contouring.h.

◆ set_value()

template<typename T >
void cgv::media::mesh::dc_slice_info< T >::set_value ( int  x,
int  y,
value,
iso_value 
)
inline

set value and flag at once

Definition at line 59 of file dual_contouring.h.

Referenced by cgv::media::mesh::dual_contouring< X, T >::process_slice().

◆ value() [1/2]

template<typename T >
T & cgv::media::mesh::dc_slice_info< T >::value ( int  x,
int  y 
)
inline

Definition at line 57 of file dual_contouring.h.

◆ value() [2/2]

template<typename T >
const T & cgv::media::mesh::dc_slice_info< T >::value ( int  x,
int  y 
) const
inline

Definition at line 56 of file dual_contouring.h.

Member Data Documentation

◆ cell_infos

template<typename T >
std::vector<cell_info<T> > cgv::media::mesh::dc_slice_info< T >::cell_infos

Definition at line 34 of file dual_contouring.h.

◆ flags

template<typename T >
std::vector<bool> cgv::media::mesh::dc_slice_info< T >::flags

Definition at line 30 of file dual_contouring.h.

◆ indices

template<typename T >
std::vector<int> cgv::media::mesh::dc_slice_info< T >::indices

Definition at line 31 of file dual_contouring.h.

◆ resx

template<typename T >
unsigned int cgv::media::mesh::dc_slice_info< T >::resx

Definition at line 28 of file dual_contouring.h.

◆ resy

template<typename T >
unsigned int cgv::media::mesh::dc_slice_info< T >::resy

Definition at line 28 of file dual_contouring.h.

◆ values

template<typename T >
std::vector<T> cgv::media::mesh::dc_slice_info< T >::values

Definition at line 29 of file dual_contouring.h.


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