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

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

#include <marching_cubes.h>

Public Member Functions

 slice_info (unsigned int _resx, unsigned int _resy)
 
void init ()
 
bool flag (int x, int y) const
 
int get_bit_code (int x, int y, int step=1) 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, int e) const
 
int & index (int x, int y, int e)
 
const int & snap_index (int x, int y) const
 
int & snap_index (int x, int y)
 

Public Attributes

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

Detailed Description

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

data structure for the information that is cached per volume slice

Definition at line 23 of file marching_cubes.h.

Constructor & Destructor Documentation

◆ slice_info()

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

Definition at line 30 of file marching_cubes.h.

Member Function Documentation

◆ flag()

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

Definition at line 43 of file marching_cubes.h.

◆ get_bit_code()

template<typename T >
int cgv::media::mesh::slice_info< T >::get_bit_code ( int  x,
int  y,
int  step = 1 
) const
inline

Definition at line 45 of file marching_cubes.h.

◆ index() [1/2]

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

Definition at line 61 of file marching_cubes.h.

◆ index() [2/2]

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

Definition at line 60 of file marching_cubes.h.

◆ init()

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

Definition at line 37 of file marching_cubes.h.

◆ set_value()

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

set value and flag at once

Definition at line 54 of file marching_cubes.h.

Referenced by cgv::media::mesh::marching_cubes_base< X, T >::extract_impl().

◆ snap_index() [1/2]

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

Definition at line 64 of file marching_cubes.h.

◆ snap_index() [2/2]

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

Definition at line 63 of file marching_cubes.h.

◆ value() [1/2]

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

Definition at line 52 of file marching_cubes.h.

◆ value() [2/2]

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

Definition at line 51 of file marching_cubes.h.

Member Data Documentation

◆ flags

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

Definition at line 27 of file marching_cubes.h.

◆ indices

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

Definition at line 28 of file marching_cubes.h.

◆ resx

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

Definition at line 25 of file marching_cubes.h.

◆ resy

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

Definition at line 25 of file marching_cubes.h.

◆ values

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

Definition at line 26 of file marching_cubes.h.


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