Changeset 2236 for trunk/packages
- Timestamp:
- Apr 29, 2011, 5:19:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp
r2230 r2236 1664 1664 } 1665 1665 1666 /** 1667 * \brief Set the orientation of the camera from a quaternion 1668 * 1669 * \param[in] quat A quaternion with scalar part first: w,x,y,z 1670 */ 1666 1671 void Renderer::setCameraOrientation(double quat[4]) 1667 1672 { … … 1707 1712 } 1708 1713 1714 /** 1715 * \brief Set the position and orientation of the camera 1716 * 1717 * \param[in] position x,y,z position of camera in world coordinates 1718 * \param[in] focalPoint x,y,z look-at point in world coordinates 1719 * \param[in] viewUp x,y,z up vector of camera 1720 */ 1709 1721 void Renderer::setCameraOrientationAndPosition(double position[3], 1710 1722 double focalPoint[3], … … 1719 1731 } 1720 1732 1733 /** 1734 * \brief Get the position and orientation of the camera 1735 * 1736 * \param[out] position x,y,z position of camera in world coordinates 1737 * \param[out] focalPoint x,y,z look-at point in world coordinates 1738 * \param[out] viewUp x,y,z up vector of camera 1739 */ 1721 1740 void Renderer::getCameraOrientationAndPosition(double position[3], 1722 1741 double focalPoint[3], … … 1899 1918 _renderer->ResetCameraClippingRange(); 1900 1919 storeCameraOrientation(); 1901 computeScreenWorldCoords();1920 //computeScreenWorldCoords(); 1902 1921 } 1903 1922 … … 1945 1964 _renderer->ResetCameraClippingRange(); 1946 1965 storeCameraOrientation(); 1966 //computeScreenWorldCoords(); 1947 1967 } 1948 1968 … … 2032 2052 } 2033 2053 2054 /** 2055 * \brief Convert pixel/display coordinates to world coordinates based on current camera 2056 */ 2034 2057 void Renderer::computeDisplayToWorld(double x, double y, double z, double worldPt[4]) 2035 2058 { … … 2045 2068 } 2046 2069 2070 /** 2071 * \brief Convert world coordinates to pixel/display coordinates based on current camera 2072 */ 2047 2073 void Renderer::computeWorldToDisplay(double x, double y, double z, double displayPt[3]) 2048 2074 { … … 2052 2078 } 2053 2079 2080 /** 2081 * \brief Compute the world coordinate bounds of the display rectangle 2082 */ 2054 2083 void Renderer::computeScreenWorldCoords() 2055 2084 { … … 2332 2361 void Renderer::setOpacity(const DataSetId& id, double opacity) 2333 2362 { 2334 setPseudoColorOpacity(id, opacity); 2335 setContourOpacity(id, opacity); 2336 setPolyDataOpacity(id, opacity); 2363 if (id.compare("all") == 0 || getPseudoColor(id) != NULL) 2364 setPseudoColorOpacity(id, opacity); 2365 if (id.compare("all") == 0 || getContour2D(id) != NULL) 2366 setContourOpacity(id, opacity); 2367 if (id.compare("all") == 0 || getPolyData(id) != NULL) 2368 setPolyDataOpacity(id, opacity); 2337 2369 } 2338 2370 … … 2361 2393 } while (doAll && ++itr != _dataSets.end()); 2362 2394 2363 setPseudoColorVisibility(id, state); 2364 setContourVisibility(id, state); 2365 setPolyDataVisibility(id, state); 2395 if (id.compare("all") == 0 || getPseudoColor(id) != NULL) 2396 setPseudoColorVisibility(id, state); 2397 if (id.compare("all") == 0 || getContour2D(id) != NULL) 2398 setContourVisibility(id, state); 2399 if (id.compare("all") == 0 || getPolyData(id) != NULL) 2400 setPolyDataVisibility(id, state); 2366 2401 } 2367 2402
Note: See TracChangeset
for help on using the changeset viewer.