|
| DataVolumeSlice (const DataVolumeHandle &data_volume, VolumeSliceType type=VolumeSliceType::AXIAL_E, size_t slice_num=0) |
|
| DataVolumeSlice (const DataVolumeSlice ©) |
|
double | get_data_at (size_t i, size_t j) const |
|
void | set_data_at (size_t i, size_t j, double value) |
|
virtual void | upload_texture () |
|
virtual VolumeSliceHandle | clone () |
| Make a copy of the slice, which will share texture object with the original one.
|
|
virtual void | set_volume (const VolumeHandle &volume) |
| Set the volume out of which the slice will be taken.
|
|
void | create_threshold_mask (std::vector< unsigned char > &mask, double min_val, double max_val, bool negative_constraint) const |
|
bool | is_valid () const |
| Returns true if the underlying volume is valid and the slice is not out of boundary.
|
|
VolumeHandle | get_volume () const |
|
VolumeType | volume_type () const |
|
void | set_slice_type (VolumeSliceType type) |
|
VolumeSliceType | get_slice_type () const |
|
void | set_slice_number (size_t slice_num) |
|
size_t | get_slice_number () const |
|
void | to_index (size_t i, size_t j, Point &index) const |
| Get the index of the point in the volume.
|
|
size_t | to_index (size_t i, size_t j) const |
| Returns the linear index of the point in the volume.
|
|
void | world_to_index (double i_pos, double j_pos, int &i, int &j) const |
|
void | index_to_world (int i, int j, double &world_i, double &world_j) const |
|
void | get_world_coord (double i_pos, double j_pos, Point &world_coord) const |
| Get the 3D world coordinate of the point.
|
|
void | project_onto_slice (const Point &pt, double &i_pos, double &j_pos) const |
| Project a point in 3D space onto the plane of the slice.
|
|
void | project_onto_slice (const Point &pt, double &i_pos, double &j_pos, double &depth) const |
| Project a point in 3D space onto the plane of the slice. Return depth by reference.
|
|
int | get_closest_slice (const Point &pt) const |
| Return the slice number that's closest to the point in 3D space.
|
|
void | move_slice_to (const Point &pos, bool fail_safe=false) |
|
void | move_slice_to (double depth, bool fail_safe=false) |
|
size_t | nx () const |
|
size_t | ny () const |
|
size_t | number_of_slices () const |
|
bool | out_of_boundary () const |
|
double | left () const |
|
double | right () const |
|
double | bottom () const |
|
double | top () const |
|
double | depth () const |
|
const Point & | bottom_left () const |
|
const Point & | bottom_right () const |
|
const Point & | top_left () const |
|
const Point & | top_right () const |
|
void | handle_volume_updated () |
|
Point | apply_grid_transform (const Point &pt) const |
|
Point | apply_inverse_grid_transform (const Point &pt) const |
|
virtual void | initialize_texture () |
|
Texture2DHandle | get_texture () |
|
mutex_type & | get_mutex () const |
|
|
static void | ProjectOntoSlice (VolumeSliceType slice_type, const Point &pt, double &i_pos, double &j_pos) |
|
static void | ProjectOntoSlice (VolumeSliceType slice_type, const Point &pt, double &i_pos, double &j_pos, double &depth) |
|
typedef boost::recursive_mutex | mutex_type |
|
typedef boost::unique_lock< mutex_type > | lock_type |
|
| VolumeSlice (const VolumeHandle &volume, VolumeSliceType type, size_t slice_num) |
|
| VolumeSlice (const VolumeSlice ©) |
|
bool | get_slice_changed () |
|
void | set_slice_changed (bool) |
|
bool | get_size_changed () |
|
void | set_size_changed (bool) |
|
Protected Member Functions inherited from Core::ConnectionHandler |
void | add_connection (const boost::signals2::connection &connection) |
|
void | add_connection (const ConnectionHandlerConnectionHandle &connection) |
|
void | disconnect_all () |
|
mutex_type & | get_mutex () const |
|