|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.object.PsObject
|
+--jv.project.PgGeometry
|
+--jv.thirdParty.ruler.PgAxes
An Axes Geometry is a Composition of Rulers. This object constucts a variety of customizable 2D and 3D axes. A 1D axes is a ruler alone, so instantiate from that the ruler.PgRuler class.
PgRuler, Serialized Form| Field Summary | |
protected int |
ALIGN_LABEL_CENTER
|
protected int |
ALIGN_LABEL_LEFT
|
protected int |
ALIGN_LABEL_RIGHT
|
static int |
AXES_2DXY_CENTER
|
static int |
AXES_2DXY_CORNER
|
static int |
AXES_2DYZ_CENTER
|
static int |
AXES_2DYZ_CORNER
|
static int |
AXES_2DZX_CENTER
|
static int |
AXES_2DZX_CORNER
|
static int |
AXES_3DBOUNDINGBOX
|
static int |
AXES_3DCENTRAL
|
static int |
AXES_3DCORNER
|
protected int |
BIND_LABEL_CENTER
|
protected int |
BIND_LABEL_LEFT
|
protected int |
BIND_LABEL_RIGHT
|
protected int |
defScale
|
protected boolean |
m_bAutoConfigure
|
protected boolean |
m_bFixedMode
Flag specifying which of 3 2d axes in 3 space are requested. 0:XY, 1:YZ, 2:ZX |
protected boolean |
m_bMajor
Flag for showing major hashings everywhere |
protected boolean |
m_bMinor
Flag for showing minor hashings everywhere |
protected PdVector[] |
m_bndBox
|
protected boolean |
m_bShowLabels
Flag for showing the labels everywhere |
protected boolean |
m_bShowTitles
Flag for showing the title everywhere |
protected int |
m_currentRuler
|
protected PuDouble |
m_majorHashUnits
|
protected PuDouble |
m_minorHashUnits
|
protected int |
m_mode
|
protected PuInteger |
m_numMajorHashings
|
protected PuInteger |
m_numMinorHashings
|
protected PdVector |
m_posXDir
|
protected PdVector |
m_posYDir
|
protected PdVector |
m_posZDir
|
protected double |
m_scale
|
protected boolean[] |
m_showHashingFlags
flags correspond to showing the hashmarks along [Xn,Xup,Yn, Yup, Zn, |
protected PdVector |
m_viewVect
|
protected PgRuler |
m_xaxis
|
protected PgRuler |
m_yaxis
|
protected PgRuler |
m_zaxis
|
protected int |
MAX
|
protected int |
MIN
|
protected int |
N
|
protected int |
NEGN
|
protected int |
NEGU
|
protected int[] |
stdAlignmnt
|
protected int |
U
|
protected int |
X
|
protected int |
XN
|
protected int |
xoff
|
protected int |
XUP
|
protected int |
Y
|
protected int |
YN
|
protected int |
yoff
|
protected int |
YUP
|
protected int |
Z
|
protected int |
ZN
|
protected int |
ZUP
|
| Fields inherited from class jv.project.PgGeometry |
m_ambientProj, m_ambientSpace, m_authorInfo, m_bShowBndBox, m_bShowCenter, m_bShowing, m_bShowTitle, m_center, m_dim, m_dimOfSimplex, m_displayList, m_geometryInfo, m_labelAttribute, m_methodMenu, m_modelMatrix, m_title, m_version, m_versionType |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS |
| Constructor Summary | |
PgAxes()
|
|
| Method Summary | |
void |
configure(PdVector[] bndBox,
PdVector viewDir)
|
protected void |
constructAxes()
|
PgGeometry[] |
getAxes()
3 axes will be returned. |
int |
getMode()
|
void |
init()
Initializes and resets geometry. |
boolean |
isShowingLabels()
|
boolean |
isShowingMajorHashings()
|
boolean |
isShowingMinorHashings()
|
boolean |
isShowingTitles()
|
boolean |
isShowingXYGrid()
|
boolean |
isShowingYZGrid()
|
boolean |
isShowingZXGrid()
|
protected void |
modeBoundingBox()
Bounding Box Mode: Axes and grid faces appear in the front of the boudnig box. |
protected void |
modeCentral()
Central Mode: The zero hashing of the x, y and z axes all intersect at the world (true) origin. |
protected void |
modeCorner()
Corner Axes Mode : All the mins meet at one corner, grid faces and axes fall in the back faces of the bounding box. |
protected void |
moveXAxis(PdVector v)
move the origin of the x-axis wrt the origin of this Axis |
protected void |
moveYAxis(PdVector v)
move the origin of the y-axis wrt the origin of this Axis |
protected void |
moveZAxis(PdVector v)
move the origin of the z-axis wrt the origin of this Axis |
void |
setAllAxesTitles(java.lang.String xTitle,
java.lang.String yTitle,
java.lang.String zTitle)
|
void |
setAllDynamicHashing(int major,
int minor)
|
void |
setAllFixedHashings(double major,
double minor)
|
void |
setAllTitleAlignments(int[] xAlign,
int[] yAlign,
int[] zAlign)
each parameter is an array of 4 int values, [ruleralignment, labelalignment deltax, deltay] where ruleralignment:={ALIGN_LABEL_LEFT,ALIGN_LABEL_RIGHT,ALIGN_LABEL_CENTER} labelalignment:={ALIGN_LABEL_LEFT,ALIGN_LABEL_RIGHT} and deltax|y is the number of pixels to displace the label in the x|y direction. |
void |
setAutoConfigure(boolean flag)
If set to true, axes in "absolute unit mode" will automatically adjust to a 'good' viewing scale based on the bounding box passed into configure(). |
protected void |
setHashingsForUninvolvedAxes(int xdir,
int ydir,
int zdir)
The hash sizes and hash directions are set for axes which do not participate in the construction of a grid. i.e. specify how you would like the grid to look when it isnt part of a grid |
void |
setMode(int i)
|
protected void |
setVisibleAxes(boolean showx,
boolean showy,
boolean showz)
|
void |
showAllFixedMode(boolean f)
|
void |
showAllLabels(boolean f)
|
void |
showAllMajorHashings(boolean f)
|
void |
showAllMinorHashings(boolean f)
|
void |
showAllTitles(boolean f)
|
void |
showAxesLabels(boolean showX,
boolean showY,
boolean showZ)
|
void |
showAxesTitles(boolean showX,
boolean showY,
boolean showZ)
|
void |
showXYGrid(boolean flag)
|
void |
showYZGrid(boolean flag)
|
void |
showZXGrid(boolean flag)
|
protected void |
syncronizeHashingFlags()
Communicates the direction(s) in which hashings of each ruler should be drawn from m_showHashingFlags of this class to each constituent ruler. |
boolean |
update(java.lang.Object event)
Update method of geometry updates registered panels, update listeners, and invokes a repaint in the registered displays. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, clearTag, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, updatePanels |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.project.PgGeometryIf |
getInfoPanel, getName, setName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, setParent |
| Field Detail |
public static final int AXES_3DCENTRAL
public static final int AXES_3DCORNER
public static final int AXES_3DBOUNDINGBOX
public static final int AXES_2DXY_CENTER
public static final int AXES_2DYZ_CENTER
public static final int AXES_2DZX_CENTER
public static final int AXES_2DXY_CORNER
public static final int AXES_2DYZ_CORNER
public static final int AXES_2DZX_CORNER
protected final int ALIGN_LABEL_LEFT
protected final int ALIGN_LABEL_RIGHT
protected final int ALIGN_LABEL_CENTER
protected final int BIND_LABEL_LEFT
protected final int BIND_LABEL_RIGHT
protected final int BIND_LABEL_CENTER
protected final int XN
protected final int XUP
protected final int YN
protected final int YUP
protected final int ZN
protected final int ZUP
protected final int MIN
protected final int MAX
protected final int X
protected final int Y
protected final int Z
protected final int N
protected final int U
protected final int NEGN
protected final int NEGU
protected final int defScale
protected final int xoff
protected final int yoff
protected final int[] stdAlignmnt
protected boolean[] m_showHashingFlags
protected boolean m_bFixedMode
protected boolean m_bMajor
protected boolean m_bMinor
protected boolean m_bShowLabels
protected boolean m_bShowTitles
protected PuInteger m_numMajorHashings
protected PuInteger m_numMinorHashings
protected PuDouble m_majorHashUnits
protected PuDouble m_minorHashUnits
protected PdVector[] m_bndBox
protected PdVector m_viewVect
protected PgRuler m_xaxis
protected PgRuler m_yaxis
protected PgRuler m_zaxis
protected PdVector m_posXDir
protected PdVector m_posYDir
protected PdVector m_posZDir
protected int m_mode
protected int m_currentRuler
protected double m_scale
protected boolean m_bAutoConfigure
| Constructor Detail |
public PgAxes()
| Method Detail |
public void init()
PgGeometryinit in class PgGeometrypublic boolean update(java.lang.Object event)
PgGeometryupdate in class PgGeometryjv.object.PsUpdateIfevent - carries a lot of informationPsObject,
PsUpdateIf.getFather(),
PsUpdateIf.setParent(PsUpdateIf)public boolean isShowingXYGrid()
public boolean isShowingYZGrid()
public boolean isShowingZXGrid()
public boolean isShowingMajorHashings()
public boolean isShowingMinorHashings()
public boolean isShowingLabels()
public boolean isShowingTitles()
public void showXYGrid(boolean flag)
public void showYZGrid(boolean flag)
public void showZXGrid(boolean flag)
public void showAllFixedMode(boolean f)
public void showAllMajorHashings(boolean f)
public void showAllMinorHashings(boolean f)
public void showAllLabels(boolean f)
public void showAllTitles(boolean f)
public void showAxesLabels(boolean showX,
boolean showY,
boolean showZ)
public void showAxesTitles(boolean showX,
boolean showY,
boolean showZ)
public void setAllTitleAlignments(int[] xAlign,
int[] yAlign,
int[] zAlign)
public void setAllAxesTitles(java.lang.String xTitle,
java.lang.String yTitle,
java.lang.String zTitle)
public void setAllFixedHashings(double major,
double minor)
public void setAllDynamicHashing(int major,
int minor)
public void setAutoConfigure(boolean flag)
public void setMode(int i)
public int getMode()
public PgGeometry[] getAxes()
public void configure(PdVector[] bndBox,
PdVector viewDir)
protected void constructAxes()
protected void modeCentral()
protected void modeCorner()
protected void modeBoundingBox()
protected void syncronizeHashingFlags()
protected void setHashingsForUninvolvedAxes(int xdir,
int ydir,
int zdir)
protected void moveXAxis(PdVector v)
protected void moveYAxis(PdVector v)
protected void moveZAxis(PdVector v)
protected void setVisibleAxes(boolean showx,
boolean showy,
boolean showz)
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||