java.lang.Object
de.grogra.imp3d.Visitor3D
de.grogra.imp3d.PickRayVisitor
- All Implemented Interfaces:
Visitor,PickVisitor,PickVisitor3D
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Vector3dprotected PickListprotected final Point3dFields inherited from class de.grogra.imp3d.Visitor3D
layer, resolution, state, transformation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidpickLine(Point3d basis, Vector3d axis, Point3d origin, Vector3d direction, Matrix4d transformation, PickList list, int tolerance) static voidpickLines(LineArray lines, Point3d origin, Vector3d direction, Matrix4d transformation, PickList list, int tolerance) static voidpickPoint(Point3d origin, Vector3d direction, Matrix4d transformation, PickList list, int tolerance) static voidpickPoint(Point3d origin, Vector3d direction, Point3d point, Matrix4d transformation, PickList list, int tolerance) protected voidvisitEnterImpl(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.protected voidvisitLeaveImpl(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.Methods inherited from class de.grogra.imp3d.Visitor3D
getCurrentTransformation, getGraphState, init, setResolution, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeave
-
Field Details
-
list
-
origin
-
direction
-
-
Constructor Details
-
PickRayVisitor
public PickRayVisitor()
-
-
Method Details
-
pick
- Specified by:
pickin interfacePickVisitor3D
-
visitEnterImpl
Description copied from class:Visitor3DThis method has to be implemented by subclasses. It is invoked whenobjectis entered.- Specified by:
visitEnterImplin classVisitor3D- Parameters:
object- the object being enteredasNode- isobjecta node or an edge?path- the path toobjectifobjectis a node, the path to the node whereobjectpoints to ifobjectis an edge
-
visitLeaveImpl
Description copied from class:Visitor3DThis method has to be implemented by subclasses. It is invoked whenobjectis left.- Specified by:
visitLeaveImplin classVisitor3D- Parameters:
object- the object being leftasNode- isobjecta node or an edge?path- the path toobjectifobjectis a node, the path to the node whereobjectpoints to ifobjectis an edge
-
pickLines
-
pickLine
-
pickPoint
-
pickPoint
-