Changeset 4358 for trunk/packages/vizservers/vtkvis/ColorMap.h
- Timestamp:
- May 21, 2014, 12:44:28 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/ColorMap.h
r4073 r4358 34 34 struct ControlPoint { 35 35 ControlPoint() : 36 value(0) 36 value(0), 37 midpoint(0.5), 38 sharpness(0) 37 39 { 38 40 memset(color, 0, sizeof(double)*3); 39 41 } 40 42 ControlPoint(const ControlPoint& other) : 41 value(other.value) 43 value(other.value), 44 midpoint(other.midpoint), 45 sharpness(other.sharpness) 42 46 { 43 47 memcpy(color, other.color, sizeof(double)*3); … … 47 51 if (this != &other) { 48 52 value = other.value; 53 midpoint = other.midpoint; 54 sharpness = other.sharpness; 49 55 memcpy(color, other.color, sizeof(double)*3); 50 56 } … … 53 59 54 60 double value; ///< Normalized scalar data value [0,1] 61 double midpoint, sharpness; 55 62 double color[3]; ///< RGB color 56 63 }; … … 62 69 OpacityControlPoint() : 63 70 value(0), 71 midpoint(0.5), 72 sharpness(0), 64 73 alpha(1) 65 74 { … … 67 76 OpacityControlPoint(const OpacityControlPoint& other) : 68 77 value(other.value), 78 midpoint(other.midpoint), 79 sharpness(other.sharpness), 69 80 alpha(other.alpha) 70 81 { … … 74 85 if (this != &other) { 75 86 value = other.value; 87 midpoint = other.midpoint; 88 sharpness = other.sharpness; 76 89 alpha = other.alpha; 77 90 } … … 80 93 81 94 double value; ///< Normalized scalar data value [0,1] 95 double midpoint, sharpness; 82 96 double alpha; ///< Opacity 83 97 };
Note: See TracChangeset
for help on using the changeset viewer.