'\"! tbl | mmdoc '\"macro stdmacro .ie n \{\ . ds Cr \fB . ds Cb \fB .\} .el \{\ . ds Cr \f7 . ds Cb \f8 .\} .TH SbCylinderProjector(3IV) .SH NAME SbCylinderProjector \(em cylinder projector .SH INHERITS FROM SbProjector > SbCylinderProjector .SH SYNOPSIS .ps -1 \*(Cr#include .sp .in 1i \f1Methods from class SbCylinderProjector: .in 0.5i .sp .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cb~SbCylinderProjector\*(Cr() .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbVec3f .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbprojectAndGetRotation\*(Cr(const SbVec2f &point, SbRotation &rot) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvirtual SbRotation .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetRotation\*(Cr(const SbVec3f &point1, const SbVec3f &point2) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetCylinder\*(Cr(const SbCylinder &cyl) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crconst SbCylinder & .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetCylinder\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetOrientToEye\*(Cr(SbBool orientToEye) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisOrientToEye\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetFront\*(Cr(SbBool isFront) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisFront\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisPointInFront\*(Cr(const SbVec3f &point) const .sp .in 1i \f1Methods from class SbProjector: .in 0.5i .sp .ta 23m .in 1i+23n .ti 0.5i .ta 23m .ds Pt \*(Crvirtual SbVec3f .ie \w'\*(Pt'>=23n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cbproject\*(Cr(const SbVec2f &point) .br .in 1i+23n .ti 0.5i .ta 23m .ds Pt \*(Crvirtual void .ie \w'\*(Pt'>=23n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetViewVolume\*(Cr(const SbViewVolume &vol) .br .in 1i+23n .ti 0.5i .ta 23m .ds Pt \*(Crconst SbViewVolume & .ie \w'\*(Pt'>=23n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetViewVolume\*(Cr() const .br .in 1i+23n .ti 0.5i .ta 23m .ds Pt \*(Crvirtual void .ie \w'\*(Pt'>=23n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetWorkingSpace\*(Cr(const SbMatrix &space) .br .in 1i+23n .ti 0.5i .ta 23m .ds Pt \*(Crconst SbMatrix & .ie \w'\*(Pt'>=23n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetWorkingSpace\*(Cr() const .br .in 1i+23n .ti 0.5i .ta 23m .ds Pt \*(Crvirtual SbProjector * .ie \w'\*(Pt'>=23n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cbcopy\*(Cr() const .sp .SH DESCRIPTION \*(CbSbCylinderProjector\f1 is an abstract base class for projectors that use a cylinder in their projection. The \*(CbgetRotation()\f1 method for an SbCylinderProjector will always return a rotation that is about the axis of the cylinder. Cylinder projectors \&are typically used to write interactive 3D manipulators and viewers. .SH METHODS .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cb~SbCylinderProjector\*(Cr() .br .in 1i \f1Destructor. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbVec3f .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbprojectAndGetRotation\*(Cr(const SbVec2f &point, SbRotation &rot) .br .in 1i \f1Apply the projector using the given point, returning the point in three dimensions that it projects to. This also returns in \*(Cbrot\f1 a rotation about the axis of the cylinder from the last projected point to this \&one. The passed \*(Cbpoint\f1 should be normalized (i.e. lie in the range [0.0,1.0]), with (0,0) at the lower-left. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvirtual SbRotation .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetRotation\*(Cr(const SbVec3f &point1, const SbVec3f &point2) .br .in 1i \f1Get a rotation given two points on this cylinder projector. The rotation will be about the axis of the cylinder. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetCylinder\*(Cr(const SbCylinder &cyl) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crconst SbCylinder & .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetCylinder\*(Cr() const .br .in 1i \f1Set and get the cylinder on which to project points. The default cylinder is aligned with the Y axis and has radius 1.0. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetOrientToEye\*(Cr(SbBool orientToEye) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisOrientToEye\*(Cr() const .br .in 1i \f1Set and get whether the projector should always be oriented towards the eye. Set to FALSE if the tolerance should be evaluated in working space. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetFront\*(Cr(SbBool isFront) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisFront\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisPointInFront\*(Cr(const SbVec3f &point) const .br .in 1i \f1Set and get whether the projector should intersect the half of the cylinder that faces the eye. Set to FALSE if the projector should intersect with the rear half. .sp .in 0.5i .SH SEE ALSO \*(CbSbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector