Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends
omni::render::ExportSettings Class Reference

Class for defining render options for calibration data. More...

#include <ExportSettings.h>

Collaboration diagram for omni::render::ExportSettings:
Collaboration graph
[legend]

Public Member Functions

CalibrationMode outputMode () const
 Mapping output mode Determines if uvw map, texture coordinates or the actual mapped image shall be output. More...
 
mapping::OutputMode mappingOutputMode () const
 Converts calibration mode into mapping output mode. More...
 
void setOutputMode (CalibrationMode)
 Set Mapping output mode Determines if uvw map, texture coordinates or the actual mapped image shall be output. More...
 
SeparationMode separationMode () const
 Determines how output images are separated Images can be stitched together or separated by screen or projector. Ignored when OMNI_CALIBRATION is output type. More...
 
void setSeparationMode (SeparationMode)
 Set separation mode which defines how output images are separated Images can be stitched together or separated by screen or projector. Ignored when OMNI_CALIBRATION is output type. More...
 
bool excludeUnassignedProjectors () const
 Projectors that are not assigned to a screen are excluded. More...
 
void setExcludeUnassignedProjectors (bool)
 Set flag for to exclude projectors that are not assigned to a screen. More...
 
OutputType outputType () const
 Output type can be a plain image (png) or omnidome calibration. More...
 
void setOutputType (OutputType)
 Output type can be a plain image (png) or omnidome calibration. More...
 
void fromStream (QDataStream &)
 Deserialize from stream. More...
 
void toStream (QDataStream &) const
 Serialize to stream. More...
 

Private Attributes

OutputType outputType_ = OutputType::OMNI_CALIBRATION
 
CalibrationMode outputMode_ = CalibrationMode::TEXCOORDS
 
SeparationMode separationMode_ = SeparationMode::SCREENS
 
bool excludeUnassignedProjectors_ = false
 

Friends

bool operator== (ExportSettings const &, ExportSettings const &)
 Test for equality. ScreenSetup is ignored. More...
 

Detailed Description

Class for defining render options for calibration data.

Member Function Documentation

bool omni::render::ExportSettings::excludeUnassignedProjectors ( ) const

Projectors that are not assigned to a screen are excluded.

50  {
52  }
bool excludeUnassignedProjectors_
Definition: ExportSettings.h:103
void omni::render::ExportSettings::fromStream ( QDataStream &  _is)

Deserialize from stream.

68  {
69  PropertyMap _map;
70 
71  _is >> _map;
72  _map.get("outputType", outputType_);
73  _map.get("outputMode", outputMode_);
74  _map.get("separationMode", separationMode_);
75  _map.get("excludeUnassignedProjectors", excludeUnassignedProjectors_);
76  }
bool excludeUnassignedProjectors_
Definition: ExportSettings.h:103
CalibrationMode outputMode_
Definition: ExportSettings.h:101
SeparationMode separationMode_
Definition: ExportSettings.h:102
OutputType outputType_
Definition: ExportSettings.h:100
mapping::OutputMode omni::render::ExportSettings::mappingOutputMode ( ) const

Converts calibration mode into mapping output mode.

30  {
32  }
CalibrationMode outputMode_
Definition: ExportSettings.h:101
static mapping::OutputMode calibrationModeToMappingOutputMode(CalibrationMode _calibMode)
Definition: CalibrationMode.h:32
CalibrationMode omni::render::ExportSettings::outputMode ( ) const

Mapping output mode Determines if uvw map, texture coordinates or the actual mapped image shall be output.

26  {
27  return outputMode_;
28  }
CalibrationMode outputMode_
Definition: ExportSettings.h:101
OutputType omni::render::ExportSettings::outputType ( ) const

Output type can be a plain image (png) or omnidome calibration.

60  {
61  return outputType_;
62  }
OutputType outputType_
Definition: ExportSettings.h:100
SeparationMode omni::render::ExportSettings::separationMode ( ) const

Determines how output images are separated Images can be stitched together or separated by screen or projector. Ignored when OMNI_CALIBRATION is output type.

40  {
41  return separationMode_;
42  }
SeparationMode separationMode_
Definition: ExportSettings.h:102
void omni::render::ExportSettings::setExcludeUnassignedProjectors ( bool  _excludeUnassignedProjectors)

Set flag for to exclude projectors that are not assigned to a screen.

56  {
57  excludeUnassignedProjectors_ = _excludeUnassignedProjectors;
58  }
bool excludeUnassignedProjectors_
Definition: ExportSettings.h:103
void omni::render::ExportSettings::setOutputMode ( CalibrationMode  _outputMode)

Set Mapping output mode Determines if uvw map, texture coordinates or the actual mapped image shall be output.

35  {
36  outputMode_ = _outputMode;
37  }
CalibrationMode outputMode_
Definition: ExportSettings.h:101
void omni::render::ExportSettings::setOutputType ( OutputType  _outputType)

Output type can be a plain image (png) or omnidome calibration.

64  {
65  outputType_ = _outputType;
66  }
OutputType outputType_
Definition: ExportSettings.h:100
void omni::render::ExportSettings::setSeparationMode ( SeparationMode  _separationMode)

Set separation mode which defines how output images are separated Images can be stitched together or separated by screen or projector. Ignored when OMNI_CALIBRATION is output type.

45  {
46  separationMode_ = _separationMode;
47  }
SeparationMode separationMode_
Definition: ExportSettings.h:102
void omni::render::ExportSettings::toStream ( QDataStream &  _os) const

Serialize to stream.

78  {
79  PropertyMap _map;
80 
81  _map("outputType", outputType_);
82  _map("outputMode", outputMode_);
83  _map("separationMode", separationMode_);
84  _map("excludeUnassignedProjectors", excludeUnassignedProjectors_);
85  _os << _map;
86  }
bool excludeUnassignedProjectors_
Definition: ExportSettings.h:103
CalibrationMode outputMode_
Definition: ExportSettings.h:101
SeparationMode separationMode_
Definition: ExportSettings.h:102
OutputType outputType_
Definition: ExportSettings.h:100

Friends And Related Function Documentation

bool operator== ( ExportSettings const &  _lhs,
ExportSettings const &  _rhs 
)
friend

Test for equality. ScreenSetup is ignored.

90  {
91  return
96  }
bool excludeUnassignedProjectors_
Definition: ExportSettings.h:103
CalibrationMode outputMode_
Definition: ExportSettings.h:101
SeparationMode separationMode_
Definition: ExportSettings.h:102
OutputType outputType_
Definition: ExportSettings.h:100
#define OMNI_TEST_MEMBER_EQUAL(member)
Definition: util.h:125

Field Documentation

bool omni::render::ExportSettings::excludeUnassignedProjectors_ = false
private
CalibrationMode omni::render::ExportSettings::outputMode_ = CalibrationMode::TEXCOORDS
private
OutputType omni::render::ExportSettings::outputType_ = OutputType::OMNI_CALIBRATION
private
SeparationMode omni::render::ExportSettings::separationMode_ = SeparationMode::SCREENS
private

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