Skip to content

Commit b177e78

Browse files
committed
Expose the symSizeX internal variables from LaueOps implementation classes
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
1 parent b3f4de3 commit b177e78

23 files changed

+149
-11
lines changed

Source/EbsdLib/LaueOps/CubicLowOps.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ int CubicLowOps::getODFSize() const
159159
return CubicLow::k_OdfSize;
160160
}
161161

162+
// -----------------------------------------------------------------------------
163+
std::array<int32_t, 3> CubicLowOps::getNumSymmetry() const
164+
{
165+
return {CubicLow::symSize0, CubicLow::symSize1, CubicLow::symSize2};
166+
}
167+
162168
// -----------------------------------------------------------------------------
163169
//
164170
// -----------------------------------------------------------------------------

Source/EbsdLib/LaueOps/CubicLowOps.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,18 @@ class EbsdLib_EXPORT CubicLowOps : public LaueOps
8282
*/
8383
bool getHasInversion() const override;
8484

85-
/**
85+
/**
8686
* @brief getODFSize Returns the number of ODF bins
8787
* @return
8888
*/
8989
int getODFSize() const override;
9090

91+
/**
92+
* @brief getNumSymmetry Returns the internal variables for symSize0, symSize1, symSize2
93+
* @return
94+
*/
95+
std::array<int32_t, 3> getNumSymmetry() const override;
96+
9197
/**
9298
* @brief getMDFSize Returns the number of MDF bins
9399
* @return

Source/EbsdLib/LaueOps/CubicOps.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ int CubicOps::getODFSize() const
204204
return CubicHigh::k_OdfSize;
205205
}
206206

207+
// -----------------------------------------------------------------------------
208+
std::array<int32_t, 3> CubicOps::getNumSymmetry() const
209+
{
210+
return {CubicHigh::symSize0, CubicHigh::symSize1, CubicHigh::symSize2};
211+
}
212+
207213
// -----------------------------------------------------------------------------
208214
//
209215
// -----------------------------------------------------------------------------

Source/EbsdLib/LaueOps/CubicOps.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,18 @@ class EbsdLib_EXPORT CubicOps : public LaueOps
8181
*/
8282
bool getHasInversion() const override;
8383

84-
/**
84+
/**
8585
* @brief getODFSize Returns the number of ODF bins
8686
* @return
8787
*/
8888
int getODFSize() const override;
8989

90+
/**
91+
* @brief getNumSymmetry Returns the internal variables for symSize0, symSize1, symSize2
92+
* @return
93+
*/
94+
std::array<int32_t, 3> getNumSymmetry() const override;
95+
9096
/**
9197
* @brief getMDFSize Returns the number of MDF bins
9298
* @return

Source/EbsdLib/LaueOps/HexagonalLowOps.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ int HexagonalLowOps::getODFSize() const
116116
return HexagonalLow::k_OdfSize;
117117
}
118118

119+
// -----------------------------------------------------------------------------
120+
std::array<int32_t, 3> HexagonalLowOps::getNumSymmetry() const
121+
{
122+
return {HexagonalLow::symSize0, HexagonalLow::symSize1, HexagonalLow::symSize2};
123+
}
124+
119125
// -----------------------------------------------------------------------------
120126
//
121127
// -----------------------------------------------------------------------------

Source/EbsdLib/LaueOps/HexagonalLowOps.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,18 @@ class EbsdLib_EXPORT HexagonalLowOps : public LaueOps
8282
*/
8383
bool getHasInversion() const override;
8484

85-
/**
85+
/**
8686
* @brief getODFSize Returns the number of ODF bins
8787
* @return
8888
*/
8989
int getODFSize() const override;
9090

91+
/**
92+
* @brief getNumSymmetry Returns the internal variables for symSize0, symSize1, symSize2
93+
* @return
94+
*/
95+
std::array<int32_t, 3> getNumSymmetry() const override;
96+
9197
/**
9298
* @brief getMDFSize Returns the number of MDF bins
9399
* @return

Source/EbsdLib/LaueOps/HexagonalOps.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ int HexagonalOps::getODFSize() const
144144
return HexagonalHigh::k_OdfSize;
145145
}
146146

147+
// -----------------------------------------------------------------------------
148+
std::array<int32_t, 3> HexagonalOps::getNumSymmetry() const
149+
{
150+
return {HexagonalHigh::symSize0, HexagonalHigh::symSize1, HexagonalHigh::symSize2};
151+
}
152+
147153
// -----------------------------------------------------------------------------
148154
//
149155
// -----------------------------------------------------------------------------

Source/EbsdLib/LaueOps/HexagonalOps.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,18 @@ class EbsdLib_EXPORT HexagonalOps : public LaueOps
8282
*/
8383
bool getHasInversion() const override;
8484

85-
/**
85+
/**
8686
* @brief getODFSize Returns the number of ODF bins
8787
* @return
8888
*/
8989
int getODFSize() const override;
9090

91+
/**
92+
* @brief getNumSymmetry Returns the internal variables for symSize0, symSize1, symSize2
93+
* @return
94+
*/
95+
std::array<int32_t, 3> getNumSymmetry() const override;
96+
9197
/**
9298
* @brief getMDFSize Returns the number of MDF bins
9399
* @return

Source/EbsdLib/LaueOps/LaueOps.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ class EbsdLib_EXPORT LaueOps
9898
*/
9999
virtual int getODFSize() const = 0;
100100

101+
/**
102+
* @brief getNumSymmetry Returns the internal variables for symSize0, symSize1, symSize2
103+
* @return
104+
*/
105+
virtual std::array<int32_t, 3> getNumSymmetry() const = 0;
106+
101107
/**
102108
* @brief Returns the number of bins for an MDF Plot assuming 5 degree increments
103109
* @return

Source/EbsdLib/LaueOps/MonoclinicOps.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ int MonoclinicOps::getODFSize() const
107107
return Monoclinic::k_OdfSize;
108108
}
109109

110+
// -----------------------------------------------------------------------------
111+
std::array<int32_t, 3> MonoclinicOps::getNumSymmetry() const
112+
{
113+
return {Monoclinic::symSize0, Monoclinic::symSize1, Monoclinic::symSize2};
114+
}
115+
110116
// -----------------------------------------------------------------------------
111117
//
112118
// -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)