Changeset 2865 for trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp
- Timestamp:
- Mar 18, 2012 7:10:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp
r2759 r2865 519 519 { 520 520 TRACE("Initializing axes"); 521 #ifdef USE_CUSTOM_AXES 522 if (_cubeAxesActor == NULL) 523 _cubeAxesActor = vtkSmartPointer<vtkRpCubeAxesActor>::New(); 524 #else 521 525 if (_cubeAxesActor == NULL) 522 526 _cubeAxesActor = vtkSmartPointer<vtkCubeAxesActor>::New(); 527 #endif 523 528 _cubeAxesActor->SetCamera(_renderer->GetActiveCamera()); 524 529 _cubeAxesActor->GetProperty()->LightingOff(); … … 1088 1093 * \param[in] width Pixel width of legend (aspect controls orientation) 1089 1094 * \param[in] height Pixel height of legend (aspect controls orientation) 1095 * \param[in] opaque Flag to control if legend is rendered opaque or translucent 1090 1096 * \param[in] numLabels Number of labels to render (includes min/max) 1091 1097 * \param[in,out] imgData Pointer to array to fill with image bytes. Array … … 1154 1160 * \param[in] width Pixel width of legend (aspect controls orientation) 1155 1161 * \param[in] height Pixel height of legend (aspect controls orientation) 1162 * \param[in] opaque Flag to control if legend is rendered opaque or translucent 1156 1163 * \param[in] numLabels Number of labels to render (includes min/max) 1157 1164 * \param[in,out] imgData Pointer to array to fill with image bytes. Array … … 1217 1224 * \param[in] width Pixel width of legend (aspect controls orientation) 1218 1225 * \param[in] height Pixel height of legend (aspect controls orientation) 1226 * \param[in] opaque Flag to control if legend is rendered opaque or translucent 1219 1227 * \param[in] numLabels Number of labels to render (includes min/max) 1220 1228 * \param[in,out] imgData Pointer to array to fill with image bytes. Array … … 1981 1989 outerGutter = (outerGutter > 15 ? 15 : outerGutter); 1982 1990 1991 int imgWidthPx = _windowWidth - pxOffsetX - outerGutter; 1983 1992 int imgHeightPx = _windowHeight - pxOffsetY - outerGutter; 1984 int imgWidthPx = _windowWidth - pxOffsetX - outerGutter;1985 1993 1986 1994 double imgAspect = width / height; … … 1990 1998 1991 1999 if (imgAspect >= winAspect) { 1992 pxToWorld = width / imgWidthPx;2000 pxToWorld = width / (double)imgWidthPx; 1993 2001 } else { 1994 pxToWorld = height / imgHeightPx;2002 pxToWorld = height / (double)imgHeightPx; 1995 2003 } 1996 2004
Note: See TracChangeset
for help on using the changeset viewer.