PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Line.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2 Program: Plus
3 Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4 See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef LINE_H
8 #define LINE_H
9 
10 #include "LinearObject.h"
11 #include <cmath>
12 #include <sstream>
13 #include <string>
14 #include <vector>
15 
16 // This class stores a vector of values and a string label
17 class Line : public LinearObject
18 {
19 public:
20  std::vector<double> EndPoint;
21 
22  Line();
23  Line( std::vector<double> newBasePoint, std::vector<double> newEndPoint );
24  ~Line();
25 
26  std::vector<double> GetDirection();
27  std::vector<double> ProjectVector( std::vector<double> vector );
28  void Translate( std::vector<double> vector );
29 
30  std::vector<double> GetOrthogonalNormal1();
31  std::vector<double> GetOrthogonalNormal2();
32 
33  virtual std::string ToXMLString() const;
34  virtual void FromXMLElement( vtkXMLDataElement* element );
35 };
36 
37 #endif
~Line()
Definition: Line.cxx:27
Line()
Definition: Line.cxx:11
Definition: Line.h:17
virtual void FromXMLElement(vtkXMLDataElement *element)
Definition: Line.cxx:140
std::vector< double > GetDirection()
Definition: Line.cxx:34
std::vector< double > ProjectVector(std::vector< double > vector)
Definition: Line.cxx:42
std::vector< double > GetOrthogonalNormal2()
Definition: Line.cxx:93
std::vector< double > EndPoint
Definition: Line.h:20
virtual std::string ToXMLString() const
Definition: Line.cxx:125
std::vector< double > GetOrthogonalNormal1()
Definition: Line.cxx:61
void Translate(std::vector< double > vector)
Definition: Line.cxx:50