#include <valfunc.h>
Inheritance diagram for ValueFunctionIntestine:
Public Member Functions | |
ValueFunctionIntestine (double StartValue=1.0, double EndValue=0.0) | |
virtual double | GetValue (double Position) |
To read the value of this function at a given position. | |
virtual ValueFunction * | Clone (void) |
Clone operator. Creates an exact copy of this object. | |
virtual INT32 | GetMinimumRecursionDepth () |
Overriden function to indicate to the path stroker how many recursions to perform at minimum before declaring a line segment 'flat' enough. | |
virtual ValueFunctionID | GetUniqueID (void) |
Protected Member Functions | |
virtual ValueFunction * | CreateAndReadFileRecord (CXaraFileRecord *pInputRecord) |
Loads a ValueFunction object from a record which was saved into a file using the WriteFileRecord call. This is called by the base class loader routine ReadFileRecord, which finds an appropriate instance of a derived class to call to load the data in question. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (ValueFunctionIntestine) |
Definition at line 588 of file valfunc.h.
|
Definition at line 593 of file valfunc.h. 00594 : ValueFunctionRamp(StartValue, EndValue) 00595 {};
|
|
|
|
Clone operator. Creates an exact copy of this object.
Implements ValueFunction. Definition at line 1960 of file valfunc.cpp. 01961 { 01962 ValueFunction *pClone = new ValueFunctionIntestine(Value1, Value2); 01963 return(pClone); 01964 }
|
|
Loads a ValueFunction object from a record which was saved into a file using the WriteFileRecord call. This is called by the base class loader routine ReadFileRecord, which finds an appropriate instance of a derived class to call to load the data in question.
Implements ValueFunction. Definition at line 2012 of file valfunc.cpp. 02013 { 02014 ERROR3IF(pInputRecord == NULL, "Illegal NULL param"); 02015 02016 float Value1 = (float) 1.0; 02017 float Value2 = (float) 0.0; 02018 02019 pInputRecord->ReadFLOAT(&Value1); 02020 pInputRecord->ReadFLOAT(&Value2); 02021 02022 return(new ValueFunctionIntestine((double) Value1, (double) Value2)); 02023 }
|
|
Overriden function to indicate to the path stroker how many recursions to perform at minimum before declaring a line segment 'flat' enough.
Reimplemented from ValueFunction. Definition at line 1979 of file valfunc.cpp.
|
|
Implements ValueFunction. Definition at line 602 of file valfunc.h. 00602 { return(ValueFunctionID_Intestine); };
|
|
To read the value of this function at a given position.
Implements ValueFunction. Definition at line 1939 of file valfunc.cpp. 01940 { 01941 const double MixValue = ((cos(Position * 20.0 * Pi) + 3.0) / 4.0); 01942 return((MixValue * Value1) + ((1.0 - MixValue) * Value2)); 01943 }
|