Free Electron
MetaRamp.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __operator_MetaRamp_h__
8 #define __operator_MetaRamp_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Common ramp interface for Houdini, Maya, etc
17 
18  @ingroup meta
19 *//***************************************************************************/
20 class FE_DL_EXPORT MetaRamp:
21  public RampI,
22  public CastableAs<MetaRamp>
23 {
24  public:
25  MetaRamp(void) {}
26 virtual ~MetaRamp(void) {}
27 
28  //* do we need this?
29 
30 virtual U32 entryCount(void) const { return 0; }
31 virtual Vector2 entry(U32 a_index) const { return Vector2(0.0,0.0); }
32 
33 virtual Real eval(Real a_u) const { return 0.0; }
34 };
35 
36 } /* namespace ext */
37 } /* namespace fe */
38 
39 #endif /* __operator_MetaRamp_h__ */
Common ramp interface for Houdini, Maya, etc.
Definition: MetaRamp.h:20
kernel
Definition: namespace.dox:3
A function giving a Real result for a Real input.
Definition: RampI.h:24
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192