MCPcopy Create free account
hub / github.com/ImageEngine/cortex / getNumericValue

Method getNumericValue

src/IECore/NumericParameter.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119template<typename T>
120T NumericParameter<T>::getNumericValue() const
121{
122 const TypedData<T> *v = runTimeCast<const TypedData<T> >( getValidatedValue() );
123 if (!v)
124 {
125 throw Exception( string( "Value is not an instance of \"" ) + ObjectType::staticTypeName() + "\"" );
126 }
127 return v->readable();
128}
129
130template<typename T>
131void NumericParameter<T>::setNumericValue( T value )

Callers 15

testSerialiseAndParseMethod · 0.80
operator()Method · 0.80
testSetGetMethod · 0.80
testFlaglessParsingMethod · 0.80
numParticlesMethod · 0.80
attributeNamesMethod · 0.80
readAttributeMethod · 0.80
modifyTypedPrimitiveMethod · 0.80

Calls 2

getValidatedValueFunction · 0.85
readableMethod · 0.80

Tested by 4

testSerialiseAndParseMethod · 0.64
operator()Method · 0.64