Changeset 2729 for trunk/packages
- Timestamp:
- Dec 13, 2011, 10:22:35 AM (13 years ago)
- Location:
- trunk/packages/vizservers/vtkvis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp
r2627 r2729 1100 1100 double range[2], 1101 1101 int width, int height, 1102 bool opaque, 1102 1103 int numLabels, 1103 1104 vtkUnsignedCharArray *imgData) … … 1110 1111 NULL, 1111 1112 DataSet::POINT_DATA, 1112 title, range, width, height, numLabels, imgData);1113 title, range, width, height, opaque, numLabels, imgData); 1113 1114 } else { 1114 1115 dataSet = _dataSets.begin()->second; … … 1126 1127 dataSet->getActiveScalarsName(), 1127 1128 dataSet->getActiveScalarsType(), 1128 title, range, width, height, numLabels, imgData);1129 title, range, width, height, opaque, numLabels, imgData); 1129 1130 } else { 1130 1131 return renderColorMap(id, dataSetID, legendType, 1131 1132 dataSet->getActiveVectorsName(), 1132 1133 dataSet->getActiveVectorsType(), 1133 title, range, width, height, numLabels, imgData);1134 title, range, width, height, opaque, numLabels, imgData); 1134 1135 } 1135 1136 } … … 1166 1167 double range[2], 1167 1168 int width, int height, 1169 bool opaque, 1168 1170 int numLabels, 1169 1171 vtkUnsignedCharArray *imgData) … … 1176 1178 NULL, 1177 1179 DataSet::POINT_DATA, 1178 title, range, width, height, numLabels, imgData);1180 title, range, width, height, opaque, numLabels, imgData); 1179 1181 } else { 1180 1182 dataSet = _dataSets.begin()->second; … … 1196 1198 fieldName, 1197 1199 attrType, 1198 title, range, width, height, numLabels, imgData);1200 title, range, width, height, opaque, numLabels, imgData); 1199 1201 } 1200 1202 … … 1229 1231 double range[2], 1230 1232 int width, int height, 1233 bool opaque, 1231 1234 int numLabels, 1232 1235 vtkUnsignedCharArray *imgData) … … 1259 1262 if (_scalarBarActor == NULL) { 1260 1263 _scalarBarActor = vtkSmartPointer<vtkScalarBarActor>::New(); 1264 _legendRenderer->AddViewProp(_scalarBarActor); 1265 } 1266 1267 if (opaque) { 1268 _scalarBarActor->UseOpacityOff(); 1269 } else { 1261 1270 _scalarBarActor->UseOpacityOn(); 1262 _legendRenderer->AddViewProp(_scalarBarActor);1263 1271 } 1264 1272 -
trunk/packages/vizservers/vtkvis/RpVtkRenderer.h
r2641 r2729 269 269 double range[2], 270 270 int width, int height, 271 bool opaque, 271 272 int numLabels, 272 273 vtkUnsignedCharArray *imgData); … … 279 280 double range[2], 280 281 int width, int height, 282 bool opaque, 281 283 int numLabels, 282 284 vtkUnsignedCharArray *imgData); … … 288 290 double range[2], 289 291 int width, int height, 292 bool opaque, 290 293 int numLabels, 291 294 vtkUnsignedCharArray *imgData); -
trunk/packages/vizservers/vtkvis/RpVtkRendererCmd.cpp
r2641 r2729 3075 3075 const char *dataSetName = Tcl_GetString(objv[8]); 3076 3076 if (!g_renderer->renderColorMap(colorMapName, dataSetName, legendType, fieldName, title, 3077 range, width, height, numLabels, imgData)) {3077 range, width, height, true, numLabels, imgData)) { 3078 3078 Tcl_AppendResult(interp, "Color map \"", 3079 3079 colorMapName, "\" or dataset \"", … … 3083 3083 } else { 3084 3084 if (!g_renderer->renderColorMap(colorMapName, "all", legendType, fieldName, title, 3085 range, width, height, numLabels, imgData)) {3085 range, width, height, true, numLabels, imgData)) { 3086 3086 Tcl_AppendResult(interp, "Color map \"", 3087 3087 colorMapName, "\" was not found", (char*)NULL);
Note: See TracChangeset
for help on using the changeset viewer.