7 #include "PlusConfigure.h" 18 Line::Line( std::vector<double> newBasePoint, std::vector<double> newEndPoint )
52 for (
unsigned int i = 0;
i < vector.size();
i++ )
64 std::vector<double> e1( 3, 0.0 );
65 std::vector<double> e2( 3, 0.0 );
68 e1.at(0) = 0; e1.at(1) = 1; e1.at(2) = 0;
69 e2.at(0) = 0; e2.at(1) = 0; e2.at(2) = 1;
73 e1.at(0) = 1; e1.at(1) = 0; e1.at(2) = 0;
74 e2.at(0) = 0; e2.at(1) = 0; e2.at(2) = 1;
78 e1.at(0) = 1; e1.at(1) = 0; e1.at(2) = 0;
79 e2.at(0) = 0; e2.at(1) = 1; e2.at(2) = 0;
96 std::vector<double> e1( 3, 0.0 );
97 std::vector<double> e2( 3, 0.0 );
100 e1.at(0) = 0; e1.at(1) = 1; e1.at(2) = 0;
101 e2.at(0) = 0; e2.at(1) = 0; e2.at(2) = 1;
105 e1.at(0) = 1; e1.at(1) = 0; e1.at(2) = 0;
106 e2.at(0) = 0; e2.at(1) = 0; e2.at(2) = 1;
110 e1.at(0) = 1; e1.at(1) = 0; e1.at(2) = 0;
111 e2.at(0) = 0; e2.at(1) = 1; e2.at(2) = 0;
127 std::ostringstream xmlstring;
129 xmlstring <<
" <Line";
130 xmlstring <<
" Name=\"" << this->
Name <<
"\"";
133 xmlstring <<
" />" << std::endl;
135 return xmlstring.str();
143 if ( strcmp( element->GetName(),
"Line" ) != 0 )
148 this->
Name = std::string( element->GetAttribute(
"Name" ) );
static double Norm(std::vector< double > vector)
virtual void FromXMLElement(vtkXMLDataElement *element)
static std::vector< double > Add(std::vector< double > v1, std::vector< double > v2)
std::vector< double > BasePoint
std::vector< double > GetDirection()
std::vector< double > ProjectVector(std::vector< double > vector)
std::vector< double > GetOrthogonalNormal2()
static double Dot(std::vector< double > v1, std::vector< double > v2)
std::vector< double > EndPoint
virtual std::string ToXMLString() const
static std::vector< double > StringToVector(std::string s, int size)
static std::string VectorToString(std::vector< double > vector)
std::vector< double > GetOrthogonalNormal1()
void Translate(std::vector< double > vector)
static std::vector< double > Multiply(double c, std::vector< double > vector)
static std::vector< double > Subtract(std::vector< double > v1, std::vector< double > v2)