public class SbLineProjector extends SbProjector
SbLineProjector
projects a 2D point, typically the location of the cursor, onto a 3D line.
See also:
SbCylinderProjector
, SbCylinderPlaneProjector
, SbCylinderSectionProjector
, SbCylinderSheetProjector
, SbPlaneProjector
, SbSpherePlaneProjector
, SbSphereProjector
, SbSphereSectionProjector
, SbSphereSheetProjector
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbLineProjector()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbLine |
getLine()
Gets the line on which to project 2D points.
|
SbVec3f |
getVector(SbVec2f mousePosition)
Gets a vector given the current mouse point.
|
SbVec3f |
getVector(SbVec2f mousePosition1,
SbVec2f mousePosition2)
Gets a vector on this line given two normalized mouse points.
|
SbVec3f |
project(SbVec2f point)
Applies the projector using the given point, returning the point in three dimensions that it projects to and the status.
|
void |
setLine(SbLine line)
Sets the line on which to project 2D points.
|
void |
setStartPosition(SbVec2f mousePosition)
Sets the initial position from a mouse position.
|
void |
setStartPosition(SbVec3f point)
Sets the initial position from a point on the projector.
|
copy, getViewVolume, getWorkingSpace, intersect, setViewVolume, setWorkingSpace
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbLineProjector()
public void setStartPosition(SbVec2f mousePosition)
public SbVec3f project(SbVec2f point)
project
in class SbProjector
public void setStartPosition(SbVec3f point)
public SbLine getLine()
public void setLine(SbLine line)
public SbVec3f getVector(SbVec2f mousePosition)
getVector()
or setStartPostion(). Do not use this if the working space transform is changing since the new point will be in a different space than the old one.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com