Skip to content

Commit aab1dae

Browse files
authored
Merge pull request #1969 from RubioJr9/glyphs
Glyphs
2 parents a781342 + 8bfd688 commit aab1dae

File tree

13 files changed

+2897
-384
lines changed

13 files changed

+2897
-384
lines changed

src/Core/Algorithms/Visualization/RenderFieldState.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class SCISHARE RenderState
114114
POINT_GLYPH,
115115
SPHERE_GLYPH,
116116
ELLIPSOID_GLYPH,
117+
SUPERELLIPSOID_GLYPH,
117118
BOX_GLYPH,
118119
AXIS_GLYPH,
119120
LINE_GLYPH,

src/Core/GeometryPrimitives/Transform.cc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,18 @@ Transform::operator=(const Transform& copy)
839839
return *this;
840840
}
841841

842+
std::vector<Vector> Transform::get_column_vectors()
843+
{
844+
std::vector<Vector> column_vectors(3);
845+
for(int i = 0; i < 3; i++)
846+
{
847+
column_vectors[i] = Vector(mat[0][i], mat[1][i], mat[2][i]);
848+
}
849+
return column_vectors;
850+
}
851+
842852
Point
843-
SCIRun::Core::Geometry::operator*(Transform &t, const Point &d)
853+
SCIRun::Core::Geometry::operator*(const Transform &t, const Point &d)
844854
{
845855
double result[4], tmp[4];
846856
result[0] = result[1] = result[2] = result[3] = 0;
@@ -864,7 +874,7 @@ SCIRun::Core::Geometry::operator*(Transform &t, const Point &d)
864874
}
865875

866876
Vector
867-
SCIRun::Core::Geometry::operator*(Transform &t, const Vector &d)
877+
SCIRun::Core::Geometry::operator*(const Transform &t, const Vector &d)
868878
{
869879
double result[4], tmp[4];
870880
result[0] = result[1] = result[2] = result[3] = 0;

src/Core/GeometryPrimitives/Transform.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ namespace SCIRun {
147147
/// Persistent I/O.
148148
static PersistentTypeID type_id;
149149
virtual void io(Piostream &stream);
150+
std::vector<Vector> get_column_vectors();
150151
};
151152

152-
SCISHARE Point operator*(Transform &t, const Point &d);
153-
SCISHARE Vector operator*(Transform &t, const Vector &d);
153+
SCISHARE Point operator*(const Transform &t, const Point &d);
154+
SCISHARE Vector operator*(const Transform &t, const Vector &d);
154155

155-
SCISHARE Tensor operator*(const Transform &t, const Tensor &d);
156+
SCISHARE Tensor operator*(const Transform &t, const Tensor &d);
156157
SCISHARE Tensor operator*(const Tensor &d, const Transform &t);
157158

158159
SCISHARE bool operator==(const Transform& lhs, const Transform& rhs);

0 commit comments

Comments
 (0)