Class SplineInputModuleBase
- Namespace
- FluffyUnderware.Curvy.Generator
Base class for spline input modules
public abstract class SplineInputModuleBase : CGModule
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourSplineInputModuleBase
- Derived
- Inherited Members
Properties
EndCP
If not null, the input spline will not be considered fully, but only the range between StartCP and EndCP.
public CurvySplineSegment EndCP { get; set; }
Property Value
Remarks
Valid values of StartCP and EndCP are such as those CPs are part of InputSpline, and StartCP is prior to EndCP in that spline
InputSpline
protected abstract CurvySpline InputSpline { get; set; }
Property Value
IsConfigured
Gets whether the module is properly configured i.e. has everything to work like intended
public override bool IsConfigured { get; }
Property Value
IsInitialized
Gets whether the module and all its dependencies are fully initialized
public override bool IsInitialized { get; }
Property Value
PathIsClosed
public bool PathIsClosed { get; }
Property Value
StartCP
If not null, the input spline will not be considered fully, but only the range between StartCP and EndCP.
public CurvySplineSegment StartCP { get; set; }
Property Value
Remarks
Valid values of StartCP and EndCP are such as those CPs are part of InputSpline, and StartCP is prior to EndCP in that spline
UseCache
Makes this module use the cached approximations of the spline's positions and tangents
public bool UseCache { get; set; }
Property Value
UseGlobalSpace
Whether to use local or global coordinates of the input's control points. Using the global space will dirty the module whenever the spline's transform is updated
public bool UseGlobalSpace { get; set; }
Property Value
Methods
ClearRange()
public void ClearRange()
GetSplineData(CurvySpline, bool, CGDataRequestRasterization, CGDataRequestMetaCGOptions)
[CanBeNull]
protected CGData GetSplineData(CurvySpline spline, bool fullPath, CGDataRequestRasterization raster, CGDataRequestMetaCGOptions options)
Parameters
splineCurvySplinefullPathboolrasterCGDataRequestRasterizationoptionsCGDataRequestMetaCGOptions
Returns
OnSplineAssigned()
protected virtual void OnSplineAssigned()
SetRange(CurvySplineSegment, CurvySplineSegment)
public void SetRange(CurvySplineSegment rangeStart, CurvySplineSegment rangeEnd)
Parameters
rangeStartCurvySplineSegmentrangeEndCurvySplineSegment
ValidateStartAndEndCps()
protected void ValidateStartAndEndCps()