7 #ifndef _FIDUCIAL_ALGORITHM_COMMON_H 8 #define _FIDUCIAL_ALGORITHM_COMMON_H 10 #include "vtkPlusCalibrationExport.h" 29 static bool PositionLessThan(std::vector<PlusFidDot>::iterator b1, std::vector<PlusFidDot>::iterator b2);
32 void SetX(
double value);
38 void SetY(
double value);
44 void SetDotIntensity(
double value);
47 double GetDotIntensity()
const;
79 static double ComputeAngleRad(
const PlusFidLine& line1);
88 void SetPoint(
int aIndex,
int aValue);
91 int GetPoint(
int aIndex)
const;
94 unsigned int GetNumberOfPoints()
const;
97 void SetIntensity(
double value);
100 double GetIntensity()
const;
103 void SetLength(
double value);
109 void SetDirectionVector(
int aIndex,
double aValue);
112 const double* GetDirectionVector()
const;
115 void SetStartPointIndex(
int index);
118 int GetStartPointIndex()
const;
121 void SetEndPointIndex(
int index);
124 int GetEndPointIndex()
const;
127 void ResizePoints(
int aNewSize);
130 void AddPoint(
int aPoint);
137 double DirectionVector[2];
153 void SetName(
const std::string& aName);
154 std::string GetName()
const;
156 double EndPointFront[3];
157 double EndPointBack[3];
176 const std::vector<PlusFidWire>& GetWires()
const;
177 const std::vector<double>& GetDistanceToOriginMm()
const;
178 const std::vector<double>& GetDistanceToOriginToleranceMm()
const;
181 void AddDistanceToOriginElementMm(
double aElement);
182 void SetDistanceToOriginElementMm(
int index,
double aElement);
183 void AddDistanceToOriginToleranceElementMm(
double aElement);
184 void SetDistanceToOriginToleranceElementMm(
int index,
double aElement);
206 double IntersectPosW12[3];
207 double IntersectPosW32[3];
238 void SetDotsFound(
bool value);
244 void SetFoundDotsCoordinateValue(std::vector< std::vector<double> >
value);
247 std::vector< std::vector<double> >& GetFoundDotsCoordinateValue();
262 void SetCandidateFidValues(std::vector<PlusFidDot>
value);
265 const std::vector<PlusFidDot>& GetCandidateFidValues()
const;
287 #endif //_FIDUCIAL_ALGORITHM_COMMON_H std::vector< std::vector< double > > FoundDotsCoordinateValue
double GetIntensity() const
std::vector< double > DistanceToOriginToleranceMm
These tolerances are in mm.
std::vector< PlusFidWire > Wires
std::vector< double > DistanceToOriginMm
These distances are in mm.
void SetNumDots(double value)
std::vector< int > Points
void SetIntensity(double value)
int StartPointIndex
index of start point of the line, all the other line points are towards the positive m_DirectionVecto...
int EndPointIndex
Index of the endpoint of the line.
std::vector< PlusFidDot > CandidateFidValues
const char const char * value
double GetNumDots() const