Commit 9225132b authored by Stéphane Albert's avatar Stéphane Albert

REFAC: Improved otb::ViewSettings constructor.

parent bc422687
......@@ -148,15 +148,15 @@ private:
ViewSettings(const Self&);
void operator=(const Self&);
PointType m_Origin;
PointType m_Origin;
SpacingType m_Spacing;
SizeType m_ViewportSize;
SizeType m_ViewportSize;
std::string m_Wkt;
KeywordListType m_KeywordList;
bool m_UseProjection;
bool m_GeometryChanged;
PointType m_RotationCenter;
double m_RotationAngle;
PointType m_RotationCenter;
double m_RotationAngle;
bool m_UseProjection : 1;
bool m_GeometryChanged : 1;
}; // End class ViewSettings
......
......@@ -22,16 +22,16 @@
namespace otb
{
ViewSettings::ViewSettings()
ViewSettings::ViewSettings() :
m_Wkt( "" ),
m_RotationAngle( 0.0 ),
m_UseProjection( true ),
m_GeometryChanged( false )
{
m_Origin.Fill(0);
m_Spacing.Fill(1);
m_ViewportSize.Fill(0);
m_Wkt="";
m_UseProjection = true;
m_GeometryChanged = false;
m_RotationCenter.Fill(0);
m_RotationAngle = 0;
m_Origin.Fill( 0 );
m_Spacing.Fill( 1 );
m_ViewportSize.Fill( 0 );
m_RotationCenter.Fill( 0 );
}
ViewSettings::~ViewSettings()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment