Skip to content

Commit 885e655

Browse files
author
tpat
committed
Merge branch 'master' into glyphs. Added invalid argument calls to undefined
switch inputs for enumerating in show field glyphs port handler
2 parents 335ba20 + 2229eb7 commit 885e655

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+8185
-647
lines changed

Superbuild/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ ENDIF()
3737
PROJECT(Superbuild)
3838

3939
INCLUDE(${CMAKE_SOURCE_DIR}/Superbuild.cmake)
40+

src/Core/GeometryPrimitives/Vector.cc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Vector::safe_normal() const
112112
return v;
113113
}
114114

115-
std::istream& operator>>( std::istream& is, Vector& v)
115+
std::istream& SCIRun::Core::Geometry::operator>>( std::istream& is, Vector& v)
116116
{
117117
double x, y, z;
118118
char st;
@@ -194,3 +194,11 @@ const TypeDescription* SCIRun::Core::Geometry::get_type_description(Vector*)
194194
}
195195
return td;
196196
}
197+
198+
Vector SCIRun::Core::Geometry::vectorFromString(const std::string& str)
199+
{
200+
std::istringstream istr(str);
201+
Vector v;
202+
istr >> v;
203+
return v;
204+
}

src/Core/GeometryPrimitives/Vector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ SCISHARE bool operator==(const Vector& v1, const Vector& v2);
152152
SCISHARE bool operator!=(const Vector& v1, const Vector& v2);
153153
SCISHARE std::ostream& operator<<(std::ostream& os, const Vector& p);
154154
SCISHARE std::istream& operator>>(std::istream& os, Vector& p);
155+
SCISHARE Vector vectorFromString(const std::string& str);
155156

156157
inline Vector::Vector()
157158
{

0 commit comments

Comments
 (0)