Skip to content

Commit e86e716

Browse files
authored
Merge branch 'master' into update_cleaver_UI
2 parents 585f8b5 + a8efc0b commit e86e716

27 files changed

+8409
-3060
lines changed

src/Core/Algorithms/Visualization/RenderFieldState.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ class SCISHARE RenderState
102102
MAX_ACTION_FLAGS
103103
};
104104

105+
enum InputPort
106+
{
107+
PRIMARY_PORT,
108+
SECONDARY_PORT,
109+
TERTIARY_PORT
110+
};
111+
105112
enum GlyphType
106113
{
107114
POINT_GLYPH,
@@ -135,6 +142,12 @@ class SCISHARE RenderState
135142
bool mFlags[MAX_ACTION_FLAGS];
136143
TransparencySortType mSortType = CONTINUOUS_SORT;
137144
GlyphType mGlyphType = POINT_GLYPH;
145+
//InputPort mTransparencyInput = PRIMARY_PORT;
146+
InputPort mColorInput = PRIMARY_PORT;
147+
InputPort mSecondaryVectorParameterInput = PRIMARY_PORT;
148+
InputPort mSpringsMajorRadiusInput = PRIMARY_PORT;
149+
InputPort mSpringsMinorRadiusInput = PRIMARY_PORT;
150+
InputPort mSpringsPitchInput = PRIMARY_PORT;
138151

139152
Core::Datatypes::ColorRGB defaultColor;
140153
};

src/Core/GeometryPrimitives/Tensor.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,17 @@ double Tensor::norm() const
254254
return (a);
255255
}
256256

257+
double Tensor::magnitude()
258+
{
259+
double eigenval1, eigenval2, eigenval3;
260+
get_eigenvalues(eigenval1, eigenval2, eigenval3);
261+
262+
double magnitude = sqrt(eigenval1 * eigenval1 +
263+
eigenval2 * eigenval2 +
264+
eigenval3 * eigenval3);
265+
return magnitude;
266+
}
267+
257268
std::string Tensor::type_name(int) {
258269
static const std::string str("Tensor");
259270
return str;

src/Core/GeometryPrimitives/Tensor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class SCISHARE Tensor {
9797
void get_eigenvalues(double &l1, double &l2, double &l3);
9898

9999
double norm() const;
100+
double magnitude();
100101

101102
void set_eigens(const Vector &e1, const Vector &e2, const Vector &e3);
102103

0 commit comments

Comments
 (0)