Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

projectors(3) [debian man page]

Projector Classes(3)						       Coin						      Projector Classes(3)

NAME
Projector Classes - Classes class SbCylinderPlaneProjector The SbCylinderPlaneProjector class projects 2D points to a half-cylinder and a plane. This projector uses a plane along with the half-cylinder of SbCylinderSectionProjector for projections. If the 2D point mapping 'misses' the cylinder section, the 3D point will be projected onto the plane. " class SbCylinderProjector The SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces. The cylinder projectors map 2D points to various surface types based on cylindrical shapes. " class SbCylinderSectionProjector The SbCylinderSectionProjector projects 2D points to a sliced cylinder. The projection cylinder for this class is sliced by a clipping plane parallel to its height axis. Projections will be mapped to the remaining cylinder part. " class SbCylinderSheetProjector The SbCylinderSheetProjector class projects 2D points to 3D points on a sheet covering a cylindrical shape. class SbLineProjector The SbLineProjector class projects 2D points to 3D points along a line. The 3D projection of the 2D coordinates is for this projector class constrained to lie along a pre-defined line. " class SbPlaneProjector The SbPlaneProjector class projects 2D points to 3D points in a plane. The 3D projection of the 2D coordinates is for this projector class constrained to lie inside a pre-defined 3D plane. " class SbProjector The SbProjector class is the abstract base projector class. Projectors are used in the Coin library for mapping 2D coordinates (typically from the position of the mouse cursor in the rendering window) to 3D 'world' coordinates. " class SbSpherePlaneProjector The SbSpherePlaneProjector class projects 2D points to a half-sphere and a plane. This projector uses a plane along with the half-sphere of SbSphereSectionProjector for projections. If the 2D point mapping 'misses' the sphere section, the 3D point will be projected onto the plane. " class SbSphereProjector The SbSphereProjector class is the abstract base class for mapping to spherical surfaces. The sphere projectors map 2D points to various surface types based on spherical shapes. " class SbSphereSectionProjector The SbSphereSectionProjector projects 2D points to a sliced sphere. The projection sphere for this class is sliced by a clipping plane. Projections will be mapped to the remaining sphere part. " class SbSphereSheetProjector The SbSphereSheetProjector class projects 2D points to 3D points on a sheet covering a spherical shape. The following stand-alone example shows how screen space coordinates projects into 3D when mapped with an SbSphereSheetProjector. It outputs the resulting projections as an SoPointSet in a Inventor-file on stdout: " Detailed Description The projector classes are used to convert between screenspace (2D) locations and locations in worldspace (3D). They are mostly used in relation to user interaction with the mouse in the viewport. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 Projector Classes(3)

Check Out this Related Man Page

SbCylinderProjector(3)						       Coin						    SbCylinderProjector(3)

NAME
SbCylinderProjector - The SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces. The cylinder projectors map 2D points to various surface types based on cylindrical shapes. SYNOPSIS
#include <Inventor/projectors/SbCylinderProjector.h> Inherits SbProjector. Inherited by SbCylinderSectionProjector, and SbCylinderSheetProjector. Public Member Functions virtual SbVec3f project (const SbVec2f &point)=0 SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot) virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)=0 void setCylinder (const SbCylinder &cyl) const SbCylinder & getCylinder (void) const void setOrientToEye (const SbBool orienttoeye) SbBool isOrientToEye (void) const void setFront (const SbBool infront) SbBool isFront (void) const SbBool isPointInFront (const SbVec3f &point) const virtual void setWorkingSpace (const SbMatrix &space) Protected Member Functions SbCylinderProjector (const SbBool orienttoeye) SbCylinderProjector (const SbCylinder &cylinder, const SbBool orienttoeye) SbBool intersectCylinderFront (const SbLine &line, SbVec3f &result) Protected Attributes SbBool intersectFront SbCylinder cylinder SbBool orientToEye SbBool needSetup SbVec3f lastPoint Detailed Description The SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces. The cylinder projectors map 2D points to various surface types based on cylindrical shapes. See also: SbSphereProjector Constructor &; Destructor Documentation SbCylinderProjector::SbCylinderProjector (const SbBoolorienttoeye) [protected] Default constructor sets up a cylinder along the Y axis with height 1. SbCylinderProjector::SbCylinderProjector (const SbCylinder &cylinder, const SbBoolorienttoeye) [protected] Constructor taking an explicit cylinder projection definition. Member Function Documentation virtual SbVec3f SbCylinderProjector::project (const SbVec2f &point) [pure virtual] Project the 2D point from normalized viewport coordinates to a 3D point. The mapping will be done in accordance with the type of the projector. Implements SbProjector. Implemented in SbCylinderSectionProjector, SbCylinderPlaneProjector, and SbCylinderSheetProjector. SbVec3f SbCylinderProjector::projectAndGetRotation (const SbVec2f &point, SbRotation &rot) Project the 2D point to a 3D coordinate on the cylindrical surface, and find the rotation from the last projection to this one. See also: project(), getRotation() SbRotation SbCylinderProjector::getRotation (const SbVec3f &point1, const SbVec3f &point2) [pure virtual] Returns rotation on the projection surface which re-orients point1 to point2. Implemented in SbCylinderSectionProjector, SbCylinderPlaneProjector, and SbCylinderSheetProjector. void SbCylinderProjector::setCylinder (const SbCylinder &cylinderref) Set cylinder to project onto. const SbCylinder & SbCylinderProjector::getCylinder (void) const Returns projection cylinder. void SbCylinderProjector::setOrientToEye (const SbBoolorienttoeye) Sets whether or not the projection surface should be oriented towards the eye of the viewer. SbBool SbCylinderProjector::isOrientToEye (void) const Returns the state of the cylinder orientation flag. void SbCylinderProjector::setFront (const SbBoolinfront) Set whether to intersect with the outside of the cylinder (isfront equal to TRUE), or the inside. SbBool SbCylinderProjector::isFront (void) const Returns value of the flag which decides whether to intersect with the outside or inside of the cylinder. SbBool SbCylinderProjector::isPointInFront (const SbVec3f &point) const Check if point is on the frontside or the backside of the cylinder. void SbCylinderProjector::setWorkingSpace (const SbMatrix &space) [virtual] Sets the matrix used for converting from the projector's coordinate system to the world coordinate system. Reimplemented from SbProjector. SbBool SbCylinderProjector::intersectCylinderFront (const SbLine &line, SbVec3f &result) [protected] Intersect line with the SbCylinderProjector::cylinder and place the intersection point (if any) in result. Considers setFront() settings. Returns TRUE if line actually hits the cylinder, FALSE if it doesn't intersect with it. Member Data Documentation SbCylinderProjector::intersectFront [protected] Flag which says whether or not we should map to the outside or inside of the cylinder surface. SbCylinderProjector::cylinder [protected] Specification of the projection cylinder. SbCylinderProjector::orientToEye [protected] Which direction the cylindrical surface is oriented. SbCylinderProjector::needSetup [protected] Set to TRUE whenever the projection surface needs to be recalculated according to the setting of the SbCylinderProjector::orientToEye flag. SbCylinderProjector::lastPoint [protected] Stores the previously projected 3D point. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SbCylinderProjector(3)
Man Page