NX Open C++ Reference Guide
Public Types | Public Member Functions
NXOpen::Fields::FieldTable Class Reference

Represents the Field Table class. More...

Inheritance diagram for NXOpen::Fields::FieldTable:
NXOpen::Fields::Field NXOpen::DisplayableObject NXOpen::NXObject NXOpen::IFitTo NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject

List of all members.

Public Types

enum  InterpolationEnum {
  InterpolationEnumNone, InterpolationEnumLinear1d, InterpolationEnumNearestNeighbor1d, InterpolationEnumInverseDistanceWeighting1d,
  InterpolationEnumDelaunay2dFast, InterpolationEnumDelaunay2dMedium, InterpolationEnumDelaunay2dAccurate, InterpolationEnumNearestNeighbor2d,
  InterpolationEnumRenkaShepard2d, InterpolationEnumInverseDistanceWeighting2d, InterpolationEnumDelaunay3dFast, InterpolationEnumDelaunay3dMedium,
  InterpolationEnumDelaunay3dAccurate, InterpolationEnumNearestNeighbor3d, InterpolationEnumRenkaShepard3d, InterpolationEnumInverseDistanceWeighting3d,
  InterpolationEnumNearestNeighborNd, InterpolationEnumRenkaShepardNd, InterpolationEnumInverseDistanceWeightingNd
}
 Interpolation type This enumeration has been deprecated use Fields::FieldEvaluator::InterpolationEnum instead. More...
enum  LoadFileOption { LoadFileOptionAppend, LoadFileOptionReplace }
 Load file options. More...

Public Member Functions

void EditFieldTable (const std::vector< NXOpen::Fields::FieldVariable * > &indepVarArray, const std::vector< NXOpen::Fields::FieldVariable * > &depVarArray, const std::vector< double > &datapoints)
 Edit the table field.
std::vector< double > GetData (NXOpen::Fields::FieldVariable *variable)
 Returns the values for the given Fields::FieldVariable in this Fields::FieldTable .
NXOpen::Fields::FieldEvaluator::InterpolationEnum InterpolationMethod ()
 Returns the interpolation method used when this table data is evaluated.
void LoadFromFile (const NXString &filename, NXOpen::Fields::FieldTable::LoadFileOption loadFileOption)
 Populate the table from a file replacing or appending data
Created in NX6.0.1.
void SetInterpolation (int interpolationMethod)
 Specified interpolation method, this method was deprecated in NX7.5.2 please use Fields::FieldTable::InterpolationMethod and Fields::FieldTable::SetInterpolationMethod instead.
void SetInterpolationMethod (NXOpen::Fields::FieldEvaluator::InterpolationEnum interpolationMethod)
 Sets the interpolation method used when this table data is evaluated.

Detailed Description

Represents the Field Table class.


A field (see Fields::Field ) defined in terms of tabular data involving one or more look-up independent columns and one or more dependent variables (see Fields::FieldVariable ) which depend on the look-up columns.

To obtain a instance of this class use Fields::FieldManager .

Created in NX6.0.0.


Member Enumeration Documentation

Interpolation type This enumeration has been deprecated use Fields::FieldEvaluator::InterpolationEnum instead.


Deprecated:
Deprecated in NX7.5.2.
Enumerator:
InterpolationEnumNone 

none

InterpolationEnumLinear1d 

linear1d

InterpolationEnumNearestNeighbor1d 

nearest neighbor1d

InterpolationEnumInverseDistanceWeighting1d 

inverse distance weighting1d

InterpolationEnumDelaunay2dFast 

delaunay2d fast

InterpolationEnumDelaunay2dMedium 

delaunay2d medium

InterpolationEnumDelaunay2dAccurate 

delaunay2d accurate

InterpolationEnumNearestNeighbor2d 

nearest neighbor2d

InterpolationEnumRenkaShepard2d 

renka shepard2d

InterpolationEnumInverseDistanceWeighting2d 

inverse distance weighting2d

InterpolationEnumDelaunay3dFast 

delaunay3d fast

InterpolationEnumDelaunay3dMedium 

delaunay3d medium

InterpolationEnumDelaunay3dAccurate 

delaunay3d accurate

InterpolationEnumNearestNeighbor3d 

nearest neighbor3d

InterpolationEnumRenkaShepard3d 

renka shepard3d

InterpolationEnumInverseDistanceWeighting3d 

inverse distance weighting3d

InterpolationEnumNearestNeighborNd 

nearest neighbor nd

InterpolationEnumRenkaShepardNd 

renka shepard nd

InterpolationEnumInverseDistanceWeightingNd 

inverse distance weighting nd

Load file options.

Enumerator:
LoadFileOptionAppend 

Append data to the table removing duplicates.

LoadFileOptionReplace 

Replace data removing duplicates.


Member Function Documentation

void NXOpen::Fields::FieldTable::EditFieldTable ( const std::vector< NXOpen::Fields::FieldVariable * > &  indepVarArray,
const std::vector< NXOpen::Fields::FieldVariable * > &  depVarArray,
const std::vector< double > &  datapoints 
)

Edit the table field.

Specifies the new array of Fields::FieldVariable s for independent and dependent variables, as well as the new double values.


Created in NX6.0.0.

License requirements : None

Parameters:
indepVarArrayindependent variables to be associated with the field
depVarArraydependent expression fields to be associated with the formula field
datapointsrow based array of double values representing the table; then number of points should equal the number of independent variables * the number of dependent variables * the number of rows.

Returns the values for the given Fields::FieldVariable in this Fields::FieldTable .

The input Fields::FieldVariable should be retrieved from the field using Fields::Field::GetIndependentVariables or Fields::Field::GetDependentVariables . The values are in the same Unit as specified on the Fields::FieldVariable .

Returns:
the row values for this variable
Created in NX7.5.4.

License requirements : None
Parameters:
variablevariable whose table values are to be returned

Returns the interpolation method used when this table data is evaluated.


Created in NX7.5.2.

License requirements : None

Populate the table from a file replacing or appending data
Created in NX6.0.1.



License requirements : None

Parameters:
filenamefile to read rows from
NOTE: The full Unicode character set is not supported for this parameter.
loadFileOptionappend or replace
void NXOpen::Fields::FieldTable::SetInterpolation ( int  interpolationMethod)

Specified interpolation method, this method was deprecated in NX7.5.2 please use Fields::FieldTable::InterpolationMethod and Fields::FieldTable::SetInterpolationMethod instead.


Deprecated:
Deprecated in NX7.5.2.


Created in NX6.0.0.

License requirements : None

Parameters:
interpolationMethodspecified interpolation method; Fields::FieldTable interpolation enum values for builtin methods.

Sets the interpolation method used when this table data is evaluated.


Created in NX7.5.2.

License requirements : None

Parameters:
interpolationMethodthe interpolation method

The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.