vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ScreenSetupSimple.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef __SCREEN_SETUP_SIMPLE_H
3 #define __SCREEN_SETUP_SIMPLE_H
4 
5 #include <string>
6 
7 #include <osg\Vec3>
8 #include <osg\Quat>
9 #include <vrecko\Ability.h>
10 
11 #include "Solver.h"
12 
13 namespace ht
14 {
15 
17  {
18  public:
20  {
22 
24 
25  osg::Vec3d wire_position;
26  osg::Quat wire_orientation;
27  double wire_length;
28  };
29 
30  private:
31  // Parameters
32  float wire_length; // Length of measuring wire
33 
34  // Sensor identification and position
35  osg::Vec3 sensor_position;
36  osg::Quat sensor_orientation;
37  int sensor_number;
38 
39  // Initial values of variables of numerical calculation and its parameters
40  float num_cal_start_step;
41  float num_cal_step_scale;
42  float num_cal_min_step_size;
43 
44  // Calculated variables
45  VariableVec3 mon_cor_position;
46  VariableVec3 sensor_offset;
47 
48  // Numerical calculation
49  ScreenSetupSimpleState current_state;
50  ListOfFunctions functions;
51  ListOfVariables variables;
52 
53  // Output file name
54  std::string output_file_name;
55 
56  protected:
57  virtual ~ScreenSetupSimple();
58 
59  void SaveSetup();
60 
61  public:
63  virtual bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parameters = NULL);
64 
66  DECLARE_INPUT(Record, vrecko::MessageBool);
67  DECLARE_INPUT(ShowPosition, vrecko::MessageBool);
68  DECLARE_INPUT(RunCalculation, vrecko::MessageBool);
69  };
70 
71 }
72 
73 #endif // __SCREEN_SETUP_H