Go to the documentation of this file.
18 #ifndef viskores_cont_ColorTable_h
19 #define viskores_cont_ColorTable_h
41 struct ColorTableInternals;
99 std::shared_ptr<detail::ColorTableInternals>
Internals;
198 const std::string& name,
201 const std::vector<viskores::Float64>& rgbPoints,
202 const std::vector<viskores::Float64>& alphaPoints = { 0.0, 1.0, 0.5, 0.0, 1.0, 1.0, 0.5, 0.0 });
207 ColorTable& operator=(
const ColorTable&) =
default;
208 ColorTable(
const ColorTable&) =
default;
210 const std::string& GetName()
const;
211 void SetName(
const std::string& name);
220 static std::set<std::string> GetPresets();
250 bool LoadPreset(
const std::string& name);
257 ColorTable MakeDeepCopy();
270 void SetClamping(
bool state);
271 bool GetClamping()
const;
302 void ReverseColors();
390 return AddPointAlpha(x, alpha, 0.5f, 0.0f);
415 return AddSegmentAlpha(x1, alpha1, x2, alpha2, mid_sharp, mid_sharp);
594 void UpdateArrayHandles()
const;
598 #endif //viskores_cont_ColorTable_h
void SetClampingOff()
Definition: cont/ColorTable.h:269
Preset
Definition: cont/ColorTable.h:102
viskores::Int32 AddPointAlpha(viskores::Float64 x, viskores::Float32 alpha)
Adds a point to the opacity function.
Definition: cont/ColorTable.h:388
Manages an array-worth of data.
Definition: ArrayHandle.h:313
std::shared_ptr< detail::ColorTableInternals > Internals
Definition: cont/ColorTable.h:99
ColorSpace
Definition: exec/ColorTable.h:26
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
Groups connected points that have the same field value.
Definition: Atomic.h:27
Color Table for coloring arbitrary fields.
Definition: cont/ColorTable.h:97
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:165
void SetClampingOn()
If clamping is disabled values that lay out side the color table range are colored based on Below and...
Definition: cont/ColorTable.h:268
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
Represent a continuous scalar range of values.
Definition: Range.h:39
int32_t Int32
Base type to use for 32-bit signed integer numbers.
Definition: Types.h:189
Definition: exec/ColorTable.h:42
Color Sample Table used with viskores::cont::ColorTable for fast coloring.
Definition: ColorTableSamples.h:40
viskores::Int32 AddSegmentAlpha(viskores::Float64 x1, viskores::Float32 alpha1, viskores::Float64 x2, viskores::Float32 alpha2)
Add a line segment to the opacity function.
Definition: cont/ColorTable.h:409
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:169
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:43
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:39
Color Sample Table used with viskores::cont::ColorTable for fast coloring.
Definition: ColorTableSamples.h:60