|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.marvin.space.GraphicComponent
chemaxon.marvin.space.PharmacophorePoint
Simple spherical representation of a pharmacophoric point/area. Three properties
are considered: location, radius and pharmacophore point type. Current
implementation provides wired in types: acceptor, donor, anionic, cationic,
hydrophobic, aromatic and excluded.
At present PharmacophorePoint serves mere visualisation purposes.
The graphical representation in the MarvinSpace canvas is a translucent sphere.
| Field Summary | |
static int |
ACCEPTOR_TYPE
|
static int |
ANIONIC_TYPE
|
static int |
AROMATIC_TYPE
|
static int |
CATIONIC_TYPE
|
static float |
DEFAULT_RADIUS
|
static int |
DONOR_TYPE
|
static java.lang.String[] |
DRAW_TYPES
|
static int |
EXCLUDED_TYPE
|
static int |
HYDROPHOBIC_TYPE
|
protected boolean |
needRecreateBall
|
protected boolean |
needRecreateDisplayList
|
static int |
UNKONWN_TYPE
|
| Fields inherited from class chemaxon.marvin.space.GraphicComponent |
active, associatedComponents, boundingBox, COMPONENT_TYPE_ENTIRE, drawProperties, drawType, gl, glu, graphicCell, irm, modifiesOrigin, motionMode, mousex, mousey, name, pickedItem, RENDERING_QUALITY_HIGH, RENDERING_QUALITY_LOW, RENDERING_QUALITY_MEDIUM, renderingQuality, rm, uoid, visible |
| Constructor Summary | |
PharmacophorePoint()
Creates a new instance of PharmacophorePoint. |
|
PharmacophorePoint(ComponentElement ce)
Creates a PharmacophorePoint at the position of the given ComponentElement
getting the coordinates by getCoordinates(). |
|
PharmacophorePoint(double x,
double y,
double z)
Creates a PharmacophorePoint at the given position. |
|
| Method Summary | |
void |
draw()
Draws the entire component if it is opaque. |
void |
drawTransparentPart()
Draws transparent parts of the component if there is any. |
java.awt.Color |
getColor()
Returns the color of the PharmacophorePoint. |
void |
getCoordinates(ComponentElement item,
float[] c)
Gets the position of the pharmacophore point. |
java.lang.String |
getDescription()
Returns textual description. |
java.lang.String |
getDrawType()
Returns the name of the drawing type. |
java.lang.String |
getName()
Returns the name of the component. |
double |
getRadius()
Returns the radius of the PharmacophorePoint in angstroms. |
boolean |
hasTransparentPart()
Checks is component has transparent part. |
boolean |
isAcceptor()
Checks if actual pharmacophore type includes ACCEPTOR_TYPE. |
boolean |
isAnionic()
Check if actual pharmacophore type includes ANIONIC_TYPE. |
boolean |
isAromatic()
Checks if actual pharmacophore type includes AROMATIC_TYPE. |
boolean |
isCationic()
Check if actual pharmacophore type includes CATIONIC_TYPE. |
boolean |
isControllable(java.lang.String type)
Returns whether controling by the given type of controller is allowed to the component. |
boolean |
isDonor()
Checks if actual pharmacophore type includes DONOR_TYPE. |
boolean |
isExcluded()
Check if actual pharmacophore type is EXCLUDED_TYPE. |
boolean |
isHighlighted()
Returns true if the component is highlighted. |
boolean |
isHydrophobic()
Checks if actual pharmacophore type includes HYDROPHOBIC_TYPE. |
protected void |
pickObject(int offset,
double[] maxZ,
float[] modelview)
Sets GraphicComponent.pickedItem to the
pharmacophore point. |
void |
resize(double x,
double y,
double z)
Resizes the component according to given factors. |
void |
select()
Sets the component to be selected. |
void |
setAcceptor(boolean flag)
Sets or clears the acceptor property of the PharmacophorePoint. |
void |
setAnionic(boolean flag)
Sets or clears the anionic property of the PharmacophorePoint. |
void |
setAromatic(boolean flag)
Sets or clears the aromatic property of the PharmacophorePoint. |
void |
setCationic(boolean flag)
Sets or clears the cationic property of the PharmacophorePoint. |
void |
setDonor(boolean flag)
Sets or clears the donor property of the PharmacophorePoint. |
void |
setDrawProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Sets drawing properties specific to PharmacophoreSphere. |
void |
setDrawType(java.lang.String type)
Sets current drawing type. |
void |
setExcluded(boolean flag)
Sets or clears the excluded property of the PharmacophorePoint. |
void |
setHighlighted(boolean flag)
Sets the highlighted state of the pharmacophore point. |
void |
setHydrophobic(boolean flag)
Sets or clears the hydrophobic property of the PharmacophorePoint. |
void |
setPosition(double x,
double y,
double z)
Sets the position of the PharmacophorePoint. |
void |
setRadius(float r)
Sets the radius of the PharmaCophorePoint. |
void |
setRenderingQuality(int quality)
Sets the rendering quality, see GraphicComponent.RENDERING_QUALITY_HIGH constants. |
void |
setRenderingQuality(java.lang.String quality)
Sets the rendering quality and calls setRenderingQuality(int). |
java.lang.String |
toString()
|
void |
translate(float[] v)
Translates the component with the given translation vector. |
void |
unSelect()
Sets the component to be unselected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface chemaxon.marvin.space.UsableObject |
getGraphicComponent, getId, isGraphicComponent, isSelected, isVisible, setColor, setName, setVisible |
| Field Detail |
public static final float DEFAULT_RADIUS
public static final java.lang.String[] DRAW_TYPES
public static final int UNKONWN_TYPE
public static final int ACCEPTOR_TYPE
public static final int DONOR_TYPE
public static final int ANIONIC_TYPE
public static final int CATIONIC_TYPE
public static final int HYDROPHOBIC_TYPE
public static final int AROMATIC_TYPE
public static final int EXCLUDED_TYPE
protected boolean needRecreateBall
protected boolean needRecreateDisplayList
| Constructor Detail |
public PharmacophorePoint()
PharmacophorePoint. It will be placed at the origo
by default, its position can be set by setPosition().
public PharmacophorePoint(ComponentElement ce)
PharmacophorePoint at the position of the given ComponentElement
getting the coordinates by getCoordinates().
Radius is set to by default.
ce - a visible component around which the pharmacophore sphere is placed
public PharmacophorePoint(double x,
double y,
double z)
by default.
x - first coordinate of the pharmacophore point to createy - second coordinate of the pharmacophore point to createz - third coordinate of the pharmacophore point to create| Method Detail |
public void setPosition(double x,
double y,
double z)
public void getCoordinates(ComponentElement item,
float[] c)
getCoordinates in class GraphicComponentitem - not usedc - coordinates of the pharmacophore point are stored in this
array, it has to be pre-allocated by the caller of this
methodpublic java.lang.String getDescription()
getDescription in class GraphicComponentpublic java.lang.String getName()
GraphicComponent
getName in interface chemaxon.marvin.space.UsableObjectgetName in class GraphicComponentgetClass.getName() by default.public java.lang.String toString()
toString in interface chemaxon.marvin.space.UsableObjecttoString in class GraphicComponentpublic double getRadius()
public void setRadius(float r)
r - radius in angstromspublic java.awt.Color getColor()
getColor in interface chemaxon.marvin.space.UsableObjectgetColor in class GraphicComponentpublic void select()
select in interface chemaxon.marvin.space.UsableObjectselect in class GraphicComponentpublic void unSelect()
unSelect in interface chemaxon.marvin.space.UsableObjectunSelect in class GraphicComponentpublic boolean isHighlighted()
public void setHighlighted(boolean flag)
flag - highligth indicatorpublic void translate(float[] v)
translate in class GraphicComponentv - 3D translation vector
public void resize(double x,
double y,
double z)
resize in class GraphicComponentx - ignoredy - size increment/decrementz - ignoredpublic boolean isControllable(java.lang.String type)
isControllable in class GraphicComponenttype - control event type, Shift and Resize
are interpreted by this component
type is either Shift or Resizepublic boolean hasTransparentPart()
GraphicComponent.hasTransparentPart().
hasTransparentPart in class GraphicComponentDRAW_TYPE_FILLED.public void drawTransparentPart()
PharmacophorePoint has no subpart, thus the whole component
is either transparent or opaque.
drawTransparentPart in class GraphicComponentpublic void draw()
draw in class GraphicComponent
protected void pickObject(int offset,
double[] maxZ,
float[] modelview)
GraphicComponent.pickedItem to the
pharmacophore point.
pickObject in class GraphicComponentoffset - see GraphicComponent.pickObject(int,double[],float[])maxZ - see GraphicComponent.pickObject(int,double[],float[])modelview - see GraphicComponent.pickObject(int,double[],float[])public void setDrawType(java.lang.String type)
type - Solid, Mesh or Transparentpublic java.lang.String getDrawType()
public boolean isAcceptor()
ACCEPTOR_TYPE.
Types are not exclusive, a PharmacophorePoint can have multiple types,
though certain combinations are senseless (like ANIONIC_TYPE
and CATIONIC_TYPE at the same time).
ACCEPTOR_TYPEpublic void setAcceptor(boolean flag)
flag - if true, current pharmacophore type will include ACCEPTOR_TYPE
otherwise it will not be an acceptorpublic boolean isDonor()
DONOR_TYPE.
Types are not exclusive, a PharmacophorePoint can have multiple types.
ADONOR_TYPEpublic void setDonor(boolean flag)
flag - if true, current pharmacophore type will include DONOR_TYPE
otherwise it will not be a donorpublic boolean isHydrophobic()
HYDROPHOBIC_TYPE.
Types are not exclusive, a PharmacophorePoint can have multiple types.
HYDROPHOBIC_TYPEpublic void setHydrophobic(boolean flag)
flag - if true, current pharmacophore type will include HYDROPHOBIC_TYPE
otherwise it will not be hydrophobicpublic boolean isAromatic()
AROMATIC_TYPE.
Types are not exclusive, a PharmacophorePoint can have multiple types.
AROMATIC_TYPEpublic void setAromatic(boolean flag)
flag - if true, current pharmacophore type will include AROMATIC_TYPE
otherwise it will not be aromaticpublic boolean isAnionic()
ANIONIC_TYPE.
Types are not exclusive, a PharmacophorePoint can have multiple types.
ANIONIC_TYPEpublic void setAnionic(boolean flag)
flag - if true, current pharmacophore type will include ANIONIC_TYPE
otherwise it will not be anionicpublic boolean isCationic()
CATIONIC_TYPE.
Types are not exclusive, a PharmacophorePoint can have multiple types.
CATIONIC_TYPEpublic void setCationic(boolean flag)
flag - if true, current pharmacophore type will include CATIONIC_TYPE
otherwise it will not be cationicpublic boolean isExcluded()
EXCLUDED_TYPE. This can
be used to represent excluded volumes.
EXCLUDED_TYPEpublic void setExcluded(boolean flag)
flag - if true, current pharmacophore type will be set to EXCLUDED_TYPE
otherwise it will not be an excluded volumepublic void setRenderingQuality(java.lang.String quality)
setRenderingQuality(int).
quality - Can be "High", "Medium", "Low".public void setRenderingQuality(int quality)
GraphicComponent.RENDERING_QUALITY_HIGH constants.
Sets the precision (resolution) of the drawn sphere.
setRenderingQuality in class GraphicComponentquality -
public void setDrawProperty(java.lang.String propertyName,
java.lang.String propertyValue)
PharmacophoreSphere.
Generic properties are processed by
GraphicComponent.setDrawProperty(String, String).String
String
String
String
String
String
String
setDrawProperty in interface chemaxon.marvin.space.UsableObjectsetDrawProperty in class GraphicComponentpropertyName - identifier of the draw propertypropertyValue - value of the draw property as a String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||