42 : m_descr(
"Supported options"), m_argc(argc), m_argv(argv)
45 (
"xPos,x", value<int>()->default_value(0),
"Position of the x-coordinates in the input point data (according to screen coordinates).")
46 (
"yPos,y", value<int>()->default_value(1),
"Position of the y-coordinates in the input data lines (according to screen coordinates).")
47 (
"zPos,z", value<int>()->default_value(2),
"Position of the z-coordinates in the input data lines (according to screen coordinates).")
48 (
"sx", value<float>()->default_value(1.0f),
"Scaling factor for the x coordinates.")
49 (
"sy", value<float>()->default_value(1.0f),
"Scaling factor for the y coordinates.")
50 (
"sz", value<float>()->default_value(1.0f),
"Scaling factor for the z coordinates.")
62 out <<
"##### Program options: " << std::endl;
65 out <<
"##### Transform input data\t: YES" << std::endl;
66 out <<
"##### Position of x coordinates\t: " <<
x() << std::endl;
67 out <<
"##### Position of y coordinates\t: " <<
y() << std::endl;
68 out <<
"##### Position of z coordinates\t: " <<
z() << std::endl;
69 out <<
"##### X-Scale\t\t\t: " <<
sx() << std::endl;
70 out <<
"##### Y-Scale\t\t\t: " <<
sy() << std::endl;
71 out <<
"##### Z-Scale\t\t\t: " <<
sz() << std::endl;
75 out <<
"##### Transform input data\t: NO" << std::endl;
92 if(
sx() != 1.0 ||
sy() != 1.0 ||
sz() != 0 ||
x() != 1 ||
y() != 1 ||
z() != 1)
112 std::string logo = R
"( 114 / \ ## ## ## ####### ###### 115 / \ ## ## ## ## ## ## ## 116 / \ ## ## ## ## ## ## 117 /________\ ## ## ## ## ## ## 118 /\ /\ ## ## ## ####### ## 119 / \ / \ ## ## ## ## ## ## 120 / \ / \ ## #### ## ## ## 121 / \ / \ ########## ## ## ## ########## 125 std::cout << logo << std::endl; char ** m_argv
Argument values.
float sz() const
Returns the scaling factor for the z coordinates.
const kaboom::Options * options
static CoordinateTransform< float > m_transform
virtual void setup()
Setup internal data structures.
float sy() const
Returns the scaling factor for the y coordinates.
void printTransformation(std::ostream &out) const
Prints transformation information to the given output stream.
BaseOption(int argc, char **argv)
CoordinateTransform< float > * m_coordinateTransform
Coordinate transform information.
options_description m_descr
The internally used option description.
int y() const
Returns the position of the x coordinate in the data.
float sx() const
Returns the scaling factor for the x coordinates.
void setupInputTransformation()
Setup transformation info for ModelIO.
positional_options_description m_pdescr
The internally used positional option desription.
variables_map m_variables
The internally used variable map.
CoordinateTransform< float > coordinateTransform() const
int z() const
Returns the position of the x coordinate in the data.
int x() const
Returns the position of the x coordinate in the data.
int m_argc
Argument count.