|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.struc.MObject
chemaxon.struc.MPoint
public class MPoint
Point object.
Field Summary |
---|
Fields inherited from class chemaxon.struc.MObject |
---|
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT |
Constructor Summary | |
---|---|
MPoint(double x,
double y)
Contructs a point object. |
|
MPoint(double x,
double y,
double z)
Contructs a point object. |
|
MPoint(DPoint3 p)
Constructs a point object. |
|
MPoint(MPoint p)
Copy constructor. |
Method Summary | |
---|---|
void |
calcCenter(DPoint3 p,
CTransform3D t)
Calculates the geometrical center. |
java.lang.Object |
clone()
Creates a clone. |
double |
distanceFrom(double x,
double y,
CTransform3D t)
Gets the 2D distance from the specified point. |
boolean |
equals(MPoint o)
Two points equal if their location equals. |
boolean |
equals(java.lang.Object o)
Two points equal if their location equals. |
DPoint3 |
getLocation()
Gets the point's location. |
DPoint3 |
getLocation(CTransform3D t)
Gets the point's location. |
void |
getLocation(DPoint3 p,
CTransform3D t)
Gets the point's location. |
MPoint |
getPoint(int i)
Gets the point. |
int |
getPointCount()
Gets the number of points. |
MPoint |
getPointRef(int i,
CTransform3D trot)
Gets a point of the line. |
int |
getPointRefCount()
Gets the number of point references. |
boolean |
isChildOf(MObject o)
Is this object a children of another one? |
boolean |
isInternalSelectable()
Is it a selection only internal object? |
void |
setLocation(DPoint3 p,
CTransform3D t)
Sets the point's location. |
void |
transform(CTransform3D t,
int opts,
CTransform3D trot)
Transforms all points. |
Methods inherited from class chemaxon.struc.MObject |
---|
addAttributeKeys, addCdataAttributeKeys, addNotify, checkValidity, containsAtom, containsPoint, distanceFrom, finishCloning, fixClonedPoints, getAttribute, getBackground, getColor, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelectableNow, isSelected, isTransformable, makeColor, removeAtom, removeChild, removeNotify, replaceAtom, setAttribute, setBackground, setColor, setLineColor, setSelected, toString, unselectContents, updateBoundingRect |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MPoint(double x, double y, double z)
x
- the x coordinatey
- the y coordinatez
- the z coordinatepublic MPoint(double x, double y)
x
- the x coordinatey
- the y coordinatepublic MPoint(DPoint3 p)
p
- the pointpublic MPoint(MPoint p)
p
- the pointMethod Detail |
---|
public boolean equals(MPoint o)
o
- the other point
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other point
public boolean isChildOf(MObject o)
isChildOf
in class MObject
o
- a possible parent
public boolean isInternalSelectable()
isInternalSelectable
in class MObject
public java.lang.Object clone()
MObject
clone
in class MObject
public void getLocation(DPoint3 p, CTransform3D t)
p
- the output point objectt
- transformation or nullpublic final DPoint3 getLocation(CTransform3D t)
t
- transformation or null
public final DPoint3 getLocation()
public void setLocation(DPoint3 p, CTransform3D t)
p
- new location in the 'absolute' system (null transform)t
- viewing transformationpublic int getPointCount()
getPointCount
in class MObject
public MPoint getPoint(int i)
getPoint
in class MObject
i
- the point index (must be 0)
public int getPointRefCount()
getPointRefCount
in class MObject
public MPoint getPointRef(int i, CTransform3D trot)
getPointRef
in class MObject
i
- the point indextrot
- the viewing transformation or null
public void transform(CTransform3D t, int opts, CTransform3D trot)
transform
in class MObject
t
- the transformation matrixopts
- transform options or 0trot
- the viewing transformation or nullMObject.TRANSFORM_DISTORT
public final void calcCenter(DPoint3 p, CTransform3D t)
calcCenter
in class MObject
p
- store the coordinates heret
- the transformation matrix or nullpublic final double distanceFrom(double x, double y, CTransform3D t)
distanceFrom
in class MObject
x
- the x coordinatey
- the y coordinatet
- transformation or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |