|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IViewer
Defines methods required by a 3D viewer. The coordinate system is screen based (+Z into the screen).
^ +Z
/
/
+-----> +X
|
|
V +Y
| Field Summary | |
|---|---|
static double |
MAGNIFICATION_FACTOR
Magnification factor. |
| Method Summary | |
|---|---|
void |
add(IShape shape)
Add the given shape. |
double |
getMagnify()
Return the magnification. |
double |
getPerspectiveConstant()
Return the perspective constant. |
boolean |
isViewPointLightUsed()
|
void |
remove(IShape shape)
Remove the given shape. |
void |
setCanvasBackground(Color color)
Set the canvas background color. |
void |
setMagnify(double magnify)
Set the magnification. |
void |
setMagnifyPanelVisible(boolean isVisible)
Set the visibility of the magnification panel. |
void |
setPerspectiveConstant(double d)
Set the perspective constant. |
void |
setViewPointLightUsed(boolean isViewPointLightUsed)
|
void |
setXScrollBarBlockIncrement(int increment)
Set the block increment on the X scroll bar. |
void |
setXScrollBarUnitIncrement(int increment)
Set the unit increment on the X scroll bar. |
void |
setXScrollBarValues(int value,
int visible,
int minimum,
int maximum)
Set the values on the X scroll bar. |
void |
setXScrollBarVisible(boolean isVisible)
Set the visibility of the X scroll bar. |
void |
setYScrollBarBlockIncrement(int increment)
Set the block increment on the Y scroll bar. |
void |
setYScrollBarUnitIncrement(int increment)
Set the unit increment on the Y scroll bar. |
void |
setYScrollBarValues(int value,
int visible,
int minimum,
int maximum)
Set the values on the Y scroll bar. |
void |
setYScrollBarVisible(boolean isVisible)
Set the visibility of the Y scroll bar. |
void |
setZScrollBarBlockIncrement(int increment)
Set the block increment on the Z scroll bar. |
void |
setZScrollBarUnitIncrement(int increment)
Set the unit increment on the Z scroll bar. |
void |
setZScrollBarValues(int value,
int visible,
int minimum,
int maximum)
Set the values on the Z scroll bar. |
void |
setZScrollBarVisible(boolean isVisible)
Set the visibility of the Z scroll bar. |
void |
update()
Update the shapes in this viewer. |
| Field Detail |
|---|
static final double MAGNIFICATION_FACTOR
| Method Detail |
|---|
void add(IShape shape)
double getMagnify()
double getPerspectiveConstant()
boolean isViewPointLightUsed()
void remove(IShape shape)
void setCanvasBackground(Color color)
void setMagnify(double magnify)
void setMagnifyPanelVisible(boolean isVisible)
void setPerspectiveConstant(double d)
void setViewPointLightUsed(boolean isViewPointLightUsed)
isViewPointLightUsed - the isViewPointLightUsed to setvoid setXScrollBarBlockIncrement(int increment)
increment - The amount by which to increment or decrement the
scroll bar's value.void setXScrollBarUnitIncrement(int increment)
increment - The amount by which to increment or decrement the
scroll bar's value.
void setXScrollBarValues(int value,
int visible,
int minimum,
int maximum)
value - The position in the current window.visible - The amount visible per page.minimum - The minimum value of the scroll bar.maximum - The maximum value of the scroll bar.void setXScrollBarVisible(boolean isVisible)
isVisible - Flag indicating if the scroll bar is visible.void setYScrollBarBlockIncrement(int increment)
increment - The amount by which to increment or decrement the
scroll bar's value.void setYScrollBarUnitIncrement(int increment)
increment - The amount by which to increment or decrement the
scroll bar's value.
void setYScrollBarValues(int value,
int visible,
int minimum,
int maximum)
value - The position in the current window.visible - The amount visible per page.minimum - The minimum value of the scroll bar.maximum - The maximum value of the scroll bar.void setYScrollBarVisible(boolean isVisible)
isVisible - Flag indicating if the scroll bar is visible.void setZScrollBarBlockIncrement(int increment)
increment - The amount by which to increment or decrement the
scroll bar's value.void setZScrollBarUnitIncrement(int increment)
increment - The amount by which to increment or decrement the
scroll bar's value.
void setZScrollBarValues(int value,
int visible,
int minimum,
int maximum)
value - The position in the current window.visible - The amount visible per page.minimum - The minimum value of the scroll bar.maximum - The maximum value of the scroll bar.void setZScrollBarVisible(boolean isVisible)
isVisible - Flag indicating if the scroll bar is visible.void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |