Skip to content

Commit e2f9205

Browse files
author
tpat
committed
Changed parameters for generateBoxPoints to const
1 parent f897f86 commit e2f9205

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Core/GeometryPrimitives/Transform.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ std::vector<Vector> Transform::get_column_vectors()
850850
}
851851

852852
Point
853-
SCIRun::Core::Geometry::operator*(Transform &t, const Point &d)
853+
SCIRun::Core::Geometry::operator*(const Transform &t, const Point &d)
854854
{
855855
double result[4], tmp[4];
856856
result[0] = result[1] = result[2] = result[3] = 0;
@@ -874,7 +874,7 @@ SCIRun::Core::Geometry::operator*(Transform &t, const Point &d)
874874
}
875875

876876
Vector
877-
SCIRun::Core::Geometry::operator*(Transform &t, const Vector &d)
877+
SCIRun::Core::Geometry::operator*(const Transform &t, const Vector &d)
878878
{
879879
double result[4], tmp[4];
880880
result[0] = result[1] = result[2] = result[3] = 0;

src/Core/GeometryPrimitives/Transform.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ namespace SCIRun {
150150
std::vector<Vector> get_column_vectors();
151151
};
152152

153-
SCISHARE Point operator*(Transform &t, const Point &d);
154-
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);
155155

156-
SCISHARE Tensor operator*(const Transform &t, const Tensor &d);
156+
SCISHARE Tensor operator*(const Transform &t, const Tensor &d);
157157
SCISHARE Tensor operator*(const Tensor &d, const Transform &t);
158158

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

src/Graphics/Glyphs/GlyphGeom.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ void reorderTensor(std::vector<Vector>& eigvectors, Vector& eigvals)
749749
}
750750
}
751751

752-
std::vector<Vector> GlyphGeom::generateBoxPoints(Transform& trans, Vector& eigvals)
752+
std::vector<Vector> GlyphGeom::generateBoxPoints(const Transform& trans, const Vector& eigvals)
753753
{
754754
std::vector<Vector> box_points;
755755
for(int x : {-1, 1})

src/Graphics/Glyphs/GlyphGeom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace SCIRun {
108108

109109
void generateCylinder(const Core::Geometry::Point& p1, const Core::Geometry::Point& p2, double radius1, double radius2, int resolution, const Core::Datatypes::ColorRGB& color1, const Core::Datatypes::ColorRGB& color2);
110110
void generateSphere(const Core::Geometry::Point& center, double radius, int resolution, const Core::Datatypes::ColorRGB& color);
111-
std::vector<Core::Geometry::Vector> generateBoxPoints(Core::Geometry::Transform& trans, Core::Geometry::Vector& eigvals);
111+
static std::vector<Core::Geometry::Vector> generateBoxPoints(const Core::Geometry::Transform& trans, const Core::Geometry::Vector& eigvals);
112112
void generateBox(const Core::Geometry::Point& center, Core::Geometry::Tensor& t, double scale, Core::Datatypes::ColorRGB& node_color, bool normalize);
113113
void generateBoxSide(const Core::Geometry::Vector& p1, const Core::Geometry::Vector& p2,
114114
const Core::Geometry::Vector& p3, const Core::Geometry::Vector& p4,

0 commit comments

Comments
 (0)