Carna  Version 3.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType > Class Template Reference

Represents a single volumetric data partition. More...

#include <VolumeSegment.h>

+ Inheritance diagram for Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType >:
+ Collaboration diagram for Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType >:

Public Types

typedef VolumeGrid< SegmentHUVolumeType, SegmentNormalsVolumeType > Grid
 Reflects the type to use for representation of the whole volumetric data partitioning.
 
typedef SegmentHUVolumeType HUVolume
 Reflects the type to use for storing the HU volume of a single partition.
 
typedef SegmentNormalsVolumeType NormalsVolume
 Reflects the type to use for storing the normal map of a single partition.
 

Public Member Functions

 VolumeSegment (Grid &grid)
 Instantiates. More...
 
void setHUVolume (Association< SegmentHUVolumeType > *huVolume)
 Sets the HU volume data of this partition.
 
SegmentHUVolumeType & huVolume ()
 References the HU volume data of this partition. More...
 
const SegmentHUVolumeType & huVolume () const
 
bool hasHUVolume () const
 Tells whether this partition has HU volume data associated.
 
- Public Member Functions inherited from Carna::base::VolumeSegmentNormalsComponent< SegmentNormalsVolumeType >
virtual ~VolumeSegmentNormalsComponent ()
 Deletes.
 
void setNormals (Association< SegmentNormalsVolumeType > *volume)
 Sets the normal map of this partition.
 
SegmentNormalsVolumeType & normals ()
 References the normal map of this partition. More...
 
const SegmentNormalsVolumeType & normals () const
 
bool hasNormals () const
 Tells whether this partition has a normal map associated.
 

Public Attributes

Gridgrid
 References the volumetric data partitioning this partition belongs to.
 
math::Vector3ui offset
 Holds the coordinate offset this partition within the whole volumetric data partitioning.
 

Detailed Description

template<typename SegmentHUVolumeType, typename SegmentNormalsVolumeType>
class Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType >

Represents a single volumetric data partition.

Author
Leonid Kostrykin
Date
8.3.15 - 29.3.15

Definition at line 163 of file VolumeSegment.h.

Constructor & Destructor Documentation

template<typename SegmentHUVolumeType , typename SegmentNormalsVolumeType >
Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType >::VolumeSegment ( Grid grid)

Instantiates.

Parameters
gridreferences the volumetric data partitioning this partition belongs to.

Definition at line 236 of file VolumeSegment.h.

Member Function Documentation

template<typename SegmentHUVolumeType , typename SegmentNormalsVolumeType >
SegmentHUVolumeType & Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType >::huVolume ( )

References the HU volume data of this partition.

Precondition
hasHUVolume() == true

Definition at line 250 of file VolumeSegment.h.

template<typename SegmentHUVolumeType , typename SegmentNormalsVolumeType >
const SegmentHUVolumeType & Carna::base::VolumeSegment< SegmentHUVolumeType, SegmentNormalsVolumeType >::huVolume ( ) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 258 of file VolumeSegment.h.


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