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

Represents a single volumetric data partition. More...

#include <VolumeSegment.h>

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

Public Types

typedef VolumeGrid< SegmentIntensityVolumeType, SegmentNormalsVolumeType > Grid
 Reflects the type to use for representation of the whole volumetric data partitioning.
 
typedef SegmentIntensityVolumeType IntensityVolume
 Reflects the type to use for storing the intensity 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 setIntensities (Association< SegmentIntensityVolumeType > *intensities)
 Sets the intensity volume data of this partition.
 
SegmentIntensityVolumeType & intensities ()
 References the intensity volume data of this partition. More...
 
const SegmentIntensityVolumeType & intensities () const
 
bool hasIntensities () const
 Tells whether this partition has intensity 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 SegmentIntensityVolumeType, typename SegmentNormalsVolumeType>
class Carna::base::VolumeSegment< SegmentIntensityVolumeType, 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

◆ VolumeSegment()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
Carna::base::VolumeSegment< SegmentIntensityVolumeType, 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

◆ intensities() [1/2]

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
SegmentIntensityVolumeType & Carna::base::VolumeSegment< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::intensities ( )

References the intensity volume data of this partition.

Precondition
hasIntensities() == true

Definition at line 250 of file VolumeSegment.h.

◆ intensities() [2/2]

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
const SegmentIntensityVolumeType & Carna::base::VolumeSegment< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::intensities ( ) 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: