FluxLineDefinition class is used to specify flux lines.
The class can be called from Study class.
.
More...
Inherits ResultDefinition.
Public Member Functions | |
| void | AddCutPlane (Variant &index) |
| Specifies the index or name of cutting plane. More... | |
| void | AddPart (int partId) |
| Adds new parts to the parts list for rendering flux lines. More... | |
| void | AddPoint (Point *position, String &name) |
| Creates a start position for rendering. More... | |
| void | AddPointWithUnit (Point *position, String &unitName, String &name) |
| Adds a start position for the flux lines using a specified unit. More... | |
| void | ClearCutPlanes () |
| Clears the setting of displayed cutting plane. | |
| void | ClearPoints () |
| Deletes the entire start position for rendering. | |
| String | DigitsNotationTypeName () |
| Returns type of numerical value display for the indicator on the scale bar. More... | |
| void | ExportAllStepsFluxLines (String &dir, String &filename, double phase, int streamlineIndex, bool needsConverting) |
| Exports the calculated flux lines of all calculated steps. More... | |
| void | ExportAllStepsFluxLinesWithInterval (String &dir, String &filename, double phase, int streamlineIndex, bool needsConverting, double interval) |
| Exports the calculated flux lines of all calculated steps. More... | |
| void | ExportAllStepsLineIntegral (String &dir, String &filename, double phase) |
| Exports the calculated flux lines' length and line integral. More... | |
| void | ExportFluxLines (String &filename, int stepNum, double phase, int streamlineIndex, bool needsConverting) |
| Exports the calculated flux lines. More... | |
| void | ExportFluxLinesWithInterval (String &filename, int stepNum, double phase, int streamlineIndex, bool needsConverting, double interval) |
| Exports the calculated flux lines with the interval set by the user. More... | |
| void | ExportLineIntegral (String &filename, int stepNum, double phase) |
| Exports the calculated flux lines' length and line integral. More... | |
| bool | GetAutoScale () |
| Returns True as a return value if the automatic scale is set. More... | |
| String | GetColor () |
| Returns the color of a line as a string. More... | |
| StringList | GetCutPlaneList () |
| Returns the list of cutting plane index. More... | |
| bool | GetDisplayScaleBar () |
| Returns True if user wants to display the scale bar. More... | |
| int | GetDisplayType () |
| Returns the display type. More... | |
| double | GetFluxValue () |
| Returns the amount of magnetic flux between flux lines. More... | |
| String | GetGradientName () |
| Returns the name of the gradation type as a string. More... | |
| Variant | GetGradientNames () |
| Returns the list of the gradation types. More... | |
| int | GetLeftPosition () |
| Returns Left position specified by the user. More... | |
| int | GetLevels () |
| Returns the number of color levels as an integer. More... | |
| int | GetLines () |
| Returns the maximum number flux lines to render as an integer. More... | |
| bool | GetLogScale () |
| Returns the scaling type. If the logarithmic scale is used, True will be returned. More... | |
| double | GetMax () |
| Returns the maximum value as a real number. More... | |
| double | GetMin () |
| Returns the minimum value as a real number. More... | |
| bool | GetModelCopy () |
| Returns the display flag of model copy. More... | |
| String | GetName () |
| Returns the name of the plot as a string. More... | |
| int | GetNumLabels () |
| Returns the number of labels in the scale bar. More... | |
| double | GetPlaneHeight () |
| Returns height of finite plane. More... | |
| double | GetPlaneWidth () |
| Returns width of finite plane. More... | |
| Point * | GetPoint (int index) |
| Obtains coordinate value from the start position for rendering that is specified from the index. More... | |
| String | GetPointName (int index) |
| Returns then name of the start position for rendering that is specified from the index. More... | |
| Point * | GetPointWithUnit (int index, String &unitName) |
| Returns the position of the specified flux line start point with a specified unit. More... | |
| String | GetResultCoordinateName () |
| Returns the coordinate system name applied to the contour display. More... | |
| String | GetResultCoordinateNameList () |
| Returns the list of the coordinate systems which can be applied to contour. More... | |
| String | GetResultType () |
| Returns the name of the result type as a string. More... | |
| Variant | GetResultTypeNames () |
| Returns the list of the result types. More... | |
| Condition * | GetScalingFactor () |
| Returns the scaling condition is set. More... | |
| bool | GetSeedLineAllParts () |
| Returns whether or not to render all parts. More... | |
| bool | GetSmooth () |
| Returns True as a return value if smoothing is set. More... | |
| double | GetThickness () |
| Returns the thickness of the line. More... | |
| int | GetTopPosition () |
| Returns Top position specified by the user. More... | |
| bool | GetTransparencyNonTarget () |
| Returns the transparency flag of non target parts. More... | |
| int | GetTransparencyValueNonTarget () |
| Returns the transparency of non target parts. More... | |
| bool | GetUseFinitePlane () |
| Returns whether or not to use the finite plane. More... | |
| bool | GetUseSpecifiedPosition () |
| Returns True if user wants to specify the position for the scale bar. More... | |
| int | GetViewIndex () |
| Returns the index of view setting. More... | |
| bool | GetViewOriginalModel () |
| Returns the display flag of original model. More... | |
| bool | GetViewPoint () |
| Returns the view point flag. More... | |
| bool | GetViewScale () |
| Returns the display flag of scaling. More... | |
| bool | IsEditMode () |
| Returns whether it is in edit mode. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumPoints () |
| Returns the number of start positions for rendering in flux lines. More... | |
| int | Precision () |
| Returns the displayed digit that is after the decimal point. More... | |
| void | RemoveAllParts () |
| Removes all parts from the parts list for rendering flux lines. | |
| void | RenamePoint (int index, String &name) |
| Changes name of the start position for specified index. More... | |
| void | SetAutoScale (bool scale) |
| Specifies the flag for the automatic scale. More... | |
| void | SetColor (String &color) |
| Specifies the color of the line. More... | |
| void | SetDigitsNotationType (Variant &type) |
| Specifies the type of numerical value display for the indicator on the scale bar. More... | |
| void | SetDisplayScaleBar (bool displayScaleBar) |
| Specifies whether or not to display the scale bar. More... | |
| void | SetDisplayType (int type) |
| Specifies the display type. More... | |
| void | SetEditMode () |
| Specifies the edit mode for batch settings. After calling the SetEditMode function, the result item is not updated until the Update function is called. | |
| void | SetFluxLineType (Variant var) |
| Specifies the rendering type. More... | |
| void | SetFluxValue (Variant &value) |
| Specifies the amount of magnetic flux between flux lines. More... | |
| void | SetGradient (String &name, Variant &levels, bool smooth) |
| Specifies the argument to specify the color gradation. More... | |
| void | SetLines (Variant &lines) |
| Specifies the maximum number of flux lines to render. More... | |
| void | SetLogScale (bool logscale) |
| Specifies the scaling type. If the value is set to True , the scaling will be a logarithmic scale. More... | |
| void | SetModelCopy (bool on) |
| Specifies the display flag of model copy. More... | |
| void | SetName (String &name) |
| Specifies the name of the plot. More... | |
| void | SetNormal (Variant &x, Variant &y, Variant &z) |
| Specifies a normal vector on the rendering plane. More... | |
| void | SetNumLabels (Variant &labels) |
| Specifies the number of labels in the scale bar. More... | |
| void | SetOrigin (Variant &x, Variant &y, Variant &z) |
| Specifies a point on the rendering plane. More... | |
| void | SetPlaneHeight (Variant &height) |
| Specifies height of finite plane. More... | |
| void | SetPlaneWidth (Variant &width) |
| Specifies width of the finite plane. More... | |
| void | SetPoint (int index, Point *position) |
| Creates start position for rendering with coordinate value and specified index. More... | |
| void | SetPointWithUnit (int index, Point *position, String &unitName) |
| Creates start position for rendering with coordinate value and specified index with a specified unit. More... | |
| void | SetPrecision (Variant &precision) |
| Specifies the displayed digit that is after the decimal point for the indicator on the scale bar. More... | |
| void | SetRange (Variant &min, Variant &max) |
| Specifies the range between the minimum and maximum values. More... | |
| void | SetResultCoordinate (Variant &name) |
| Returns the coordinate system name applied to the contour display. More... | |
| void | SetResultType (String &typeName, String &sourceTitle=String()) |
| Specifies the result type. More... | |
| void | SetScaleBarPosition (Variant &leftPos, Variant &topPos) |
| Specifies the scale bar position. More... | |
| void | SetScalingFactor (Condition *cond) |
| Specifies Condition object for scaling. More... | |
| void | SetSeedLineAllParts (bool use) |
| Specifies whether or not all parts are an object of the rendering plane. More... | |
| void | SetThickness (Variant &value) |
| Specifies the thickness of the line. More... | |
| void | SetTransparencyNonTarget (bool on) |
| Specifies the transparency flag of non target parts. More... | |
| void | SetTransparencyValueNonTarget (Variant &value) |
| Specifies the transparency of non target parts. More... | |
| void | SetUseFinitePlane (bool use) |
| Specifies whether or not to use the finite plane. More... | |
| void | SetUseFluxValue (bool useFluxValue) |
| Specifies the display method for the flux line. More... | |
| void | SetUseSpecifiedPosition (bool useSpecifiedPosition) |
| Specifies whether or not to use the specified position of the scale bar. More... | |
| void | SetViewIndex (Variant &index) |
| Specifies the index of view setting. More... | |
| void | SetViewName (Variant &name) |
| Specifies the name of view setting. More... | |
| void | SetViewOriginalModel (bool on) |
| Specifies the display flag of original model. More... | |
| void | SetViewPoint (bool on) |
| Specifies the flag of view point. More... | |
| void | SetViewScale (bool on) |
| Specifies the display flag of scaling. More... | |
| void | Update () |
| Cancels edit mode and performs update processing. Script error when calling outside edit mode. | |
FluxLineDefinition class is used to specify flux lines.
The class can be called from Study class.
.
Example of obtaining the class object:
|
inherited |
Specifies the index or name of cutting plane.
| index | Index or name of cutting plane |
| void FluxLineDefinition::AddPart | ( | int | partId | ) |
Adds new parts to the parts list for rendering flux lines.
| partId | Part ID |
| void FluxLineDefinition::AddPoint | ( | Point * | position, |
| String & | name | ||
| ) |
Creates a start position for rendering.
| position | Point object (coordinate value of start position for rendering) |
| name | Name of the start position for rendering |
| void FluxLineDefinition::AddPointWithUnit | ( | Point * | position, |
| String & | unitName, | ||
| String & | name | ||
| ) |
Adds a start position for the flux lines using a specified unit.
| position | Point object (coordinate value of start position for rendering) |
| unitName | Unit |
| name | Name of the start position for rendering |
|
inherited |
Returns type of numerical value display for the indicator on the scale bar.
| void FluxLineDefinition::ExportAllStepsFluxLines | ( | String & | dir, |
| String & | filename, | ||
| double | phase, | ||
| int | streamlineIndex, | ||
| bool | needsConverting | ||
| ) |
Exports the calculated flux lines of all calculated steps.
| dir | Output folder |
| filename | Base file name for exporting csv file |
| phase | Current phase |
| streamlineIndex | Index of the flux line to be exported. 0 to export all flux lines. |
| needsConverting | Whether to convert the starting coordinate units to meters |
| void FluxLineDefinition::ExportAllStepsFluxLinesWithInterval | ( | String & | dir, |
| String & | filename, | ||
| double | phase, | ||
| int | streamlineIndex, | ||
| bool | needsConverting, | ||
| double | interval | ||
| ) |
Exports the calculated flux lines of all calculated steps.
| dir | Output folder |
| filename | Base file name for exporting csv file |
| phase | Current phase |
| streamlineIndex | Index of the flux line to be exported. 0 to export all flux lines. |
| needsConverting | Whether to convert the starting coordinate units to meters |
| interval | Interval value for displaying the flux lines |
| void FluxLineDefinition::ExportAllStepsLineIntegral | ( | String & | dir, |
| String & | filename, | ||
| double | phase | ||
| ) |
Exports the calculated flux lines' length and line integral.
| dir | Output folder |
| filename | Base file name for exporting csv file |
| phase | Current phase. |
| void FluxLineDefinition::ExportFluxLines | ( | String & | filename, |
| int | stepNum, | ||
| double | phase, | ||
| int | streamlineIndex, | ||
| bool | needsConverting | ||
| ) |
Exports the calculated flux lines.
| filename | File name for exporting csv file |
| stepNum | Current step index |
| phase | Current phase |
| streamlineIndex | Index of the flux line to be exported. 0 to export all flux lines. |
| needsConverting | Whether to convert the starting coordinate units to meters |
| void FluxLineDefinition::ExportFluxLinesWithInterval | ( | String & | filename, |
| int | stepNum, | ||
| double | phase, | ||
| int | streamlineIndex, | ||
| bool | needsConverting, | ||
| double | interval | ||
| ) |
Exports the calculated flux lines with the interval set by the user.
| filename | File name for exporting csv file |
| stepNum | Current step index |
| phase | Current phase |
| streamlineIndex | Index of the flux line to be exported. 0 to export all flux lines. |
| needsConverting | Whether to convert the starting coordinate units to meters |
| interval | Interval value for displaying the flux lines |
| void FluxLineDefinition::ExportLineIntegral | ( | String & | filename, |
| int | stepNum, | ||
| double | phase | ||
| ) |
Exports the calculated flux lines' length and line integral.
| filename | File name for exporting csv file |
| stepNum | Current step index |
| phase | Current phase |
|
inherited |
Returns True as a return value if the automatic scale is set.
| String FluxLineDefinition::GetColor | ( | ) |
Returns the color of a line as a string.
|
inherited |
Returns the list of cutting plane index.
|
inherited |
Returns True if user wants to display the scale bar.
| int FluxLineDefinition::GetDisplayType | ( | ) |
Returns the display type.
| double FluxLineDefinition::GetFluxValue | ( | ) |
Returns the amount of magnetic flux between flux lines.
|
inherited |
Returns the name of the gradation type as a string.
|
inherited |
Returns the list of the gradation types.
|
inherited |
Returns Left position specified by the user.
|
inherited |
Returns the number of color levels as an integer.
| int FluxLineDefinition::GetLines | ( | ) |
Returns the maximum number flux lines to render as an integer.
|
inherited |
Returns the scaling type. If the logarithmic scale is used, True will be returned.
|
inherited |
Returns the maximum value as a real number.
|
inherited |
Returns the minimum value as a real number.
|
inherited |
Returns the display flag of model copy.
|
inherited |
Returns the name of the plot as a string.
|
inherited |
Returns the number of labels in the scale bar.
| double FluxLineDefinition::GetPlaneHeight | ( | ) |
Returns height of finite plane.
| double FluxLineDefinition::GetPlaneWidth | ( | ) |
Returns width of finite plane.
| Point * FluxLineDefinition::GetPoint | ( | int | index | ) |
Obtains coordinate value from the start position for rendering that is specified from the index.
| index | Index of the start position for rendering |
| String FluxLineDefinition::GetPointName | ( | int | index | ) |
Returns then name of the start position for rendering that is specified from the index.
| index | Index of the start position for rendering |
| Point * FluxLineDefinition::GetPointWithUnit | ( | int | index, |
| String & | unitName | ||
| ) |
Returns the position of the specified flux line start point with a specified unit.
| index | Index of the start position for rendering |
| unitName | Unit |
|
inherited |
Returns the coordinate system name applied to the contour display.
|
inherited |
Returns the list of the coordinate systems which can be applied to contour.
|
virtual |
Returns the name of the result type as a string.
Reimplemented from ResultDefinition.
|
inherited |
Returns the list of the result types.
|
inherited |
Returns the scaling condition is set.
| bool FluxLineDefinition::GetSeedLineAllParts | ( | ) |
Returns whether or not to render all parts.
|
inherited |
Returns True as a return value if smoothing is set.
| double FluxLineDefinition::GetThickness | ( | ) |
Returns the thickness of the line.
|
inherited |
Returns Top position specified by the user.
|
inherited |
Returns the transparency flag of non target parts.
|
inherited |
Returns the transparency of non target parts.
| bool FluxLineDefinition::GetUseFinitePlane | ( | ) |
Returns whether or not to use the finite plane.
|
inherited |
Returns True if user wants to specify the position for the scale bar.
|
inherited |
Returns the index of view setting.
|
inherited |
Returns the display flag of original model.
|
inherited |
Returns the view point flag.
|
inherited |
Returns the display flag of scaling.
|
inherited |
Returns whether it is in edit mode.
|
inherited |
Returns True if an object is valid.
| int FluxLineDefinition::NumPoints | ( | ) |
Returns the number of start positions for rendering in flux lines.
|
inherited |
Returns the displayed digit that is after the decimal point.
| void FluxLineDefinition::RenamePoint | ( | int | index, |
| String & | name | ||
| ) |
Changes name of the start position for specified index.
| index | Index of the start position for rendering |
| name | Name |
|
inherited |
Specifies the flag for the automatic scale.
| scale | ON/OFF |
| void FluxLineDefinition::SetColor | ( | String & | color | ) |
Specifies the color of the line.
| color | Color of the line |
The colors can be specified with the following methods.
|
inherited |
Specifies the type of numerical value display for the indicator on the scale bar.
| type | Type of numerical value display
automatic : Automatic
sientific : Exponent display
decimal : Decimal display
|
|
inherited |
Specifies whether or not to display the scale bar.
| displayScaleBar | Flag for whether or not to display the scale bar. |
| void FluxLineDefinition::SetDisplayType | ( | int | type | ) |
Specifies the display type.
| type | 0 : Shaded
1 : Hidden Line
2 : Wireframe
|
| void FluxLineDefinition::SetFluxLineType | ( | Variant | var | ) |
Specifies the rendering type.
| var | 0=point : From point
1=plane : From plane
|
| void FluxLineDefinition::SetFluxValue | ( | Variant & | value | ) |
Specifies the amount of magnetic flux between flux lines.
| value | The amount of magnetic flux between lines (Wb). |
|
inherited |
Specifies the argument to specify the color gradation.
| name | Gradation:
PurpleRed
BlueRed
GrayScale
CMR
|
| levels | Number of levels |
| smooth | Smooth color band |
| void FluxLineDefinition::SetLines | ( | Variant & | lines | ) |
Specifies the maximum number of flux lines to render.
| lines | Number of lines |
|
inherited |
Specifies the scaling type. If the value is set to True , the scaling will be a logarithmic scale.
| logscale | True=1 : Logarithmic scale
False=0 : Linear scale
|
|
inherited |
Specifies the display flag of model copy.
| on | Display flag of model copy |
|
inherited |
Specifies the name of the plot.
| name | Plot name |
| void FluxLineDefinition::SetNormal | ( | Variant & | x, |
| Variant & | y, | ||
| Variant & | z | ||
| ) |
Specifies a normal vector on the rendering plane.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
|
inherited |
Specifies the number of labels in the scale bar.
| labels | Number of labels |
| void FluxLineDefinition::SetOrigin | ( | Variant & | x, |
| Variant & | y, | ||
| Variant & | z | ||
| ) |
Specifies a point on the rendering plane.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| void FluxLineDefinition::SetPlaneHeight | ( | Variant & | height | ) |
Specifies height of finite plane.
| height | Height of the finite plane |
| void FluxLineDefinition::SetPlaneWidth | ( | Variant & | width | ) |
Specifies width of the finite plane.
| width | Width of the finite plane |
| void FluxLineDefinition::SetPoint | ( | int | index, |
| Point * | position | ||
| ) |
Creates start position for rendering with coordinate value and specified index.
| index | Index of start position for rendering |
| position | Point object (coordinate value of start position for rendering) |
| void FluxLineDefinition::SetPointWithUnit | ( | int | index, |
| Point * | position, | ||
| String & | unitName | ||
| ) |
Creates start position for rendering with coordinate value and specified index with a specified unit.
| index | Index of start position for rendering |
| position | Point object (coordinate value of start position for rendering) |
| unitName | Unit |
|
inherited |
Specifies the displayed digit that is after the decimal point for the indicator on the scale bar.
| Precision | Display digit after the decimal point |
|
inherited |
Specifies the range between the minimum and maximum values.
| min | Minimum value |
| max | Maximum value |
|
inherited |
Returns the coordinate system name applied to the contour display.
| name | Name or index of the coordinate system |
|
virtual |
Specifies the result type.
| typeName | Result type name |
| sourceTitle | Title of the result calculation, such as FFT, when referencing a calculation tool. |
sourceTitle can be omitted.
For information about the condition type name that can be specified as typeName , see Properties and Flags for Calculating Results .
Reimplemented from ResultDefinition.
|
inherited |
Specifies the scale bar position.
| leftPos | Position of the scale bar starting from the left |
| topPos | Position of the scale bar starting from the bottom |
|
inherited |
| void FluxLineDefinition::SetSeedLineAllParts | ( | bool | use | ) |
Specifies whether or not all parts are an object of the rendering plane.
| use | True=1 : [Seed Lines in All Parts] is enabled
False=0 : [Seed Lines in All Parts] is disabled
|
| void FluxLineDefinition::SetThickness | ( | Variant & | value | ) |
Specifies the thickness of the line.
| value | Line thickness |
|
inherited |
Specifies the transparency flag of non target parts.
| on | Transparency on/off |
|
inherited |
Specifies the transparency of non target parts.
| value | Transparency(0~100) |
| void FluxLineDefinition::SetUseFinitePlane | ( | bool | use | ) |
Specifies whether or not to use the finite plane.
| use | True=1 : [Use Finite Plane] is enabled
False=0 : [Use Finite Plane] is disabled
|
| void FluxLineDefinition::SetUseFluxValue | ( | bool | useFluxValue | ) |
Specifies the display method for the flux line.
| useFluxValue | False=0 : Number of Lines
True=1 : Fixed Flux
|
|
inherited |
Specifies whether or not to use the specified position of the scale bar.
| useSpecifiedPosition | Flag for whether or not to use the specified position of the scale bar. |
|
inherited |
Specifies the index of view setting.
| index | Index of view setting |
|
inherited |
Specifies the name of view setting.
| name | Name of the view setting |
|
inherited |
Specifies the display flag of original model.
| on | Display flag of original model |
|
inherited |
Specifies the flag of view point.
| on | Flag of view point |
|
inherited |
Specifies the display flag of scaling.
| on | Display flag of scaling |