12 #ifndef IW_DAFF_PROPERTIESIMPL 13 #define IW_DAFF_PROPERTIESIMPL 27 : m_iFileFormatVersion(0),
35 m_fAlphaResolution(0),
40 m_pOrientationDefault(0),
47 assert( pProps !=
NULL );
53 delete m_pOrientationDefault;
80 std::vector<std::string> m_vChannelLabels;
91 return m_iFileFormatVersion;
97 return m_iContentType;
103 return m_iQuantization;
109 return m_iNumChannels;
115 return m_iNumRecords;
121 return m_vChannelLabels[iChannel];
129 return m_iAlphaPoints;
135 return m_fAlphaResolution;
141 return m_fAlphaStart;
153 if (m_fAlphaStart <= m_fAlphaEnd)
154 return m_fAlphaEnd - m_fAlphaStart;
156 return 360 - m_fAlphaStart + m_fAlphaEnd;
164 return m_iBetaPoints;
170 return m_fBetaResolution;
188 return m_fBetaEnd - m_fBetaStart;
196 o = *m_pOrientationDefault;
202 m_pTrans->setOrientation(*m_pOrientationDefault);
208 m_pTrans->getOrientation(o);
214 m_pTrans->setOrientation(o);
223 if ((m_fAlphaStart == 0) && (m_fAlphaEnd == 360))
233 if ((m_fBetaStart == 0) && (m_fBetaEnd == 180))
247 int m_iFileFormatVersion,
268 #endif // IW_DAFF_PROPERTIESIMPL
virtual int getQuantization() const
Returns the quantization of the data elements.
virtual int getContentType() const
Returns the content type.
virtual std::string getChannelLabel(int iChannel) const
Returns the label of a channel.
virtual std::string getChannelLabel(int iChannel) const =0
Returns the label of a channel.
virtual int getBetaPoints() const
virtual bool coversFullAlphaRange() const
Indicates whether the data covers the full alpha range [0°, 360°)
DAFFSCTransform * m_pTrans
virtual float getAlphaEnd() const
virtual float getBetaResolution() const
virtual float getBetaSpan() const
std::vector< std::string > m_vChannelLabels
virtual float getAlphaStart() const =0
virtual int getFileFormatVersion() const
Returns the DAFF version of the file format.
virtual float getBetaEnd() const =0
DAFFOrientationYPR * m_pOrientationDefault
virtual void getOrientation(DAFFOrientationYPR &o) const =0
Returns the current orientation of the object view.
virtual int getNumberOfChannels() const
Returns the number of channels.
virtual bool coversFullBetaRange() const
Indicates whether the data covers the full beta range [0°, 180°].
virtual float getBetaStart() const =0
virtual bool coversFullSphere() const
Indicates whether the data covers the full sphere.
virtual int getQuantization() const =0
Returns the quantization of the data elements.
virtual void setOrientation(const DAFFOrientationYPR &o)
Sets the current orientation of the object view.
virtual int getContentType() const =0
Returns the content type.
virtual int getAlphaPoints() const =0
virtual bool coversFullBetaRange() const =0
Indicates whether the data covers the full beta range [0°, 180°].
virtual float getAlphaStart() const
virtual int getNumberOfRecords() const =0
Returns the overall number of records.
virtual void getDefaultOrientation(DAFFOrientationYPR &o) const
Returns the default orientation as stored in the file.
virtual int getFileFormatVersion() const =0
Returns the DAFF version of the file format.
virtual float getBetaEnd() const
virtual int getNumberOfRecords() const
Returns the overall number of records.
virtual float getAlphaSpan() const
virtual void setDefaultOrientation()
Sets/alters the default orientation manually.
virtual float getAlphaEnd() const =0
virtual int getBetaPoints() const =0
Properties of a DAFF file that uses regular sphere grids (or parts of a regular grid) ...
virtual void getOrientation(DAFFOrientationYPR &o) const
Returns the current orientation of the object view.
virtual float getBetaStart() const
DAFFPropertiesImpl & operator=(const DAFFProperties &oProps)
Assignment operator.
virtual int getAlphaPoints() const
virtual int getNumberOfChannels() const =0
Returns the number of channels.
virtual float getAlphaResolution() const =0
virtual float getAlphaResolution() const
Implements the interface of DAFFProperties.
Data class for orientations in yaw-pitch-roll (YPR) angles (right-handed OpenGL coordinate system) ...
virtual void getDefaultOrientation(DAFFOrientationYPR &o) const =0
Returns the default orientation as stored in the file.
DAFFPropertiesImpl(const DAFFProperties *pProps)
Copy constructor.
virtual float getBetaResolution() const =0
virtual bool coversFullAlphaRange() const =0
Indicates whether the data covers the full alpha range [0°, 360°)