|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanar.Anar
public class Anar

| Nested Class Summary | |
|---|---|
class |
Anar.RenameDraw
As draw is used by processing and Anar.draw() should be used for Anar.main.draw(), we need this class to rename draw() to drawP5() |
| Field Summary | |
|---|---|
static boolean |
defaultScene
|
static int |
frameCount
|
static Group |
group
|
static Group |
main
|
static PFont |
modelFont
|
static Mouse |
mouse
|
static Obj |
obj
|
static boolean |
oogMouse
|
PApplet |
p5
|
static boolean |
povRecord
|
static boolean |
radRecord
|
static long |
rndScheme
Internal Random Sequence Generator. |
static Scene |
scene
|
static PFont |
screenFont
|
static long |
seed
Internal random seed to produce exact same random sequence. |
static Sliders |
sliders
|
static boolean |
slidersDraw
|
| Constructor Summary | |
|---|---|
Anar(PApplet p5)
This is the main of the Geometric Library. |
|
| Method Summary | |
|---|---|
static Face |
add(Face f)
|
static Group |
add(Group g)
|
static Obj |
add(Obj o)
|
static Pt |
add(Pt p)
|
static Pts |
add(Pts p)
|
static XYZ[] |
bound(java.util.ArrayList pts)
|
static Vertex |
boundCenter(XYZ[] bound)
|
static void |
bsplineRes(int i)
|
static void |
camTarget(float x,
float y)
Set the camera target (lookAt) to the given coordiantes. |
static void |
camTarget(float x,
float y,
float z)
Set the camera target (lookAt) to the given coordiantes. |
static void |
camTarget(Group group)
|
static void |
camTarget(Obj baseObj)
Set the camera to lookAt the center of an Object. |
static void |
camTarget(Pt targetPt)
Set the camera to lookAt target to submitted Pt. |
static void |
camTarget(Pts basePts)
Set the camera to lookAt the center of an Object. |
static Anar |
chitecture(PApplet p5)
|
static Anar |
chy(PApplet p5)
|
static void |
displaySeed()
Display the actual random properties of Anar. |
static void |
draw()
Draw everything collected in the group main. |
static void |
drawAxis()
Toggle the Built-in axis display. |
static void |
drawAxis(boolean onOff)
Turn On|Off Built-in axis display. |
static void |
drawReferenceFrame()
Toggle the Built-in axis display. |
static void |
drawReferenceFrame(boolean onOff)
Turn On|Off Built-in axis display. |
static void |
drawSliders()
Toggle the sliders display (On|Off). |
static void |
drawSliders(boolean onOff)
Turn On|Off sliders display. |
static Face |
face(int i)
|
static Face |
faceEnd()
|
static Face |
faceEnd(int i)
|
static Group |
group(int i)
|
static Group |
groupEnd()
|
static Group |
groupEnd(int i)
|
static Anar |
init(PApplet p5)
|
static Pts |
line(int i)
|
static Pts |
lineEnd()
|
static Pts |
lineEnd(int i)
|
static Group |
newLayer()
|
static Obj |
newObj()
|
static int |
numOfFaces()
|
static int |
numOfGroup()
|
static int |
numOfLines()
|
static int |
numOfObj()
|
static int |
numOfPts()
|
static Obj |
obj(int i)
|
static Obj |
objEnd()
|
static Obj |
objEnd(int i)
|
static void |
orientedDrawBegin(XYZ q)
|
static void |
orientedDrawEnd()
|
static void |
povRecorder()
|
static void |
povRecorderStart()
|
static void |
povRecorderStop()
|
void |
pre()
|
static void |
print(double str)
Sent to System out. |
static void |
print(java.lang.Object o)
|
static void |
print(java.lang.String str)
Sent to System out. |
static void |
println()
Sent to System out. |
static void |
println(double str)
Sent to System out. |
static void |
println(java.lang.Object o)
|
static void |
println(java.lang.String str)
Sent to System out. |
static PtABS |
Pt(float x)
Create a point with xyz |
static PtABS |
Pt(float x,
float y)
Create a point with xyz |
static PtABS |
Pt(float x,
float y,
float z)
Create a point with xyz |
static PtABS |
Pt(float i,
float j,
float k,
java.lang.String name)
|
static Pt |
pt(int i)
|
static PtABS |
Pt(Param x,
Param y)
Create a point with xy |
static PtABS |
Pt(Param x,
Param y,
Param z)
Create a point with xyz |
static PtDER |
Pt(Pt p)
Create a point derived from the first. |
static PtDER |
Pt(Pt p,
java.lang.String name)
|
static PtDER |
Pt(Pt ori,
Transform t)
|
static PtDER |
Pt(Pt ori,
Transform t,
java.lang.String name)
|
static PtABS |
Pt(XYZ p)
|
static Pt |
ptEnd()
|
static Pt |
ptEnd(int i)
|
static PtABS |
PtNull(float x,
float y,
float z)
Example: (1,0,2) --> ParametricValue(1) and ParametricValue(2) In this case, 0 doesn't exist. |
static PtABS |
PtNull(float x,
float y,
float z,
java.lang.String name)
|
static PtABS |
PtRnd(float x)
|
static PtABS |
PtRnd(float x,
float y)
|
static PtABS |
PtRnd(float x,
float y,
float z)
|
static void |
radRecorder()
|
static void |
radRecorderStart()
|
static void |
radRecorderStop()
|
static RenderPtShapeOriented |
renderPtShapeOriented(Face shape,
int fill)
|
static RenderPtShapeOriented |
renderPtShapeOriented(Face shape,
int fill,
int stroke)
Change the default Pt render for the given shape.. |
static float |
rnd()
Generate a random value between 0...1 |
static float |
rnd(float max)
Generate a random value between 0...max |
static float |
rnd(float min,
float max)
Generate a random value between min...max |
static int |
rndi()
Generate a random integer (0xffffff) |
static int |
rndi(float max)
Generate a random integer between 0...max |
static int |
rndi(float min,
float max)
Generate a random value between min...max |
static void |
rndNext()
The random scheme is a new set of random values using the same seed. |
static void |
rndPrev()
The random scheme is a new set of random values using the same seed. |
static void |
rndReset()
Each time a new random value is asked, rndCount is incremented. |
static void |
rndReset(int newRndCount)
If a specific randomCount is needed, this method set the rndCount to the given value. |
static long |
rndScheme()
|
static long |
rndScheme(long sd)
|
static void |
screenDrawBegin()
|
static void |
screenDrawEnd()
|
static void |
seed()
Initialize the random environment with a random value. |
static void |
seed(int _seed)
Initialize the random environment with the given number. |
static void |
setCenter(Obj baseObj)
camTarget(Obj) |
static void |
setCenter(Pt targetPt)
camTarget(Pt) |
static void |
setCenter(Pts pts)
camTarget(Pts) |
static void |
sliders(Group group)
|
static void |
sliders(Parametric p)
Add sliders to the main list of sliders. |
static void |
slidersAdd(Parametric p)
sliders(Parametric) |
static void |
slidersRemove(Parametric p)
|
static void |
slidersReset()
Reset the list of sliders. |
static void |
slidersToggle()
|
static void |
switchToMidiSliders()
Replace the actual list of parameters by the midi list equivalent. |
static void |
text(java.lang.String str,
XYZ position)
|
static void |
text3D(java.lang.String str,
XYZ position)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final PApplet p5
public static Mouse mouse
public static Scene scene
public static boolean defaultScene
public static boolean oogMouse
public static int frameCount
public static Sliders sliders
public static PFont modelFont
public static PFont screenFont
public static Group main
public static Group group
public static Obj obj
public static boolean povRecord
public static boolean radRecord
public static boolean slidersDraw
public static long rndScheme
public static long seed
| Constructor Detail |
|---|
public Anar(PApplet p5)
| Method Detail |
|---|
public static Anar init(PApplet p5)
public static Anar chy(PApplet p5)
public static Anar chitecture(PApplet p5)
public void pre()
public static RenderPtShapeOriented renderPtShapeOriented(Face shape,
int fill,
int stroke)
shape - - A Face to replace eachpoint displayed shape.fill - stroke -
public static RenderPtShapeOriented renderPtShapeOriented(Face shape,
int fill)
shape - - A Face to replace eachpoint displayed shape.fill -
#renderPtFatCross(Face, int, int)public static Group newLayer()
public static Obj newObj()
public static Group add(Group g)
public static Obj add(Obj o)
public static Face add(Face f)
public static Pts add(Pts p)
public static Pt add(Pt p)
public static void draw()
public static Pt pt(int i)
public static Pt ptEnd()
public static Pt ptEnd(int i)
public static Pts line(int i)
public static Pts lineEnd()
public static Pts lineEnd(int i)
public static Face face(int i)
public static Face faceEnd()
public static Face faceEnd(int i)
public static Obj obj(int i)
public static Obj objEnd()
public static Obj objEnd(int i)
public static Group group(int i)
public static Group groupEnd()
public static Group groupEnd(int i)
public static int numOfFaces()
public static int numOfPts()
public static int numOfLines()
public static int numOfObj()
public static int numOfGroup()
public static PtABS Pt(float x,
float y,
float z)
x - y - z -
public static PtABS Pt(XYZ p)
public static PtABS Pt(float i,
float j,
float k,
java.lang.String name)
i - j - k - string -
public static PtABS Pt(Param x,
Param y)
x - y -
public static PtABS Pt(Param x,
Param y,
Param z)
x - y - z -
public static PtABS Pt(float x,
float y)
x - y -
public static PtABS Pt(float x)
x -
public static PtABS PtNull(float x,
float y,
float z)
x - y - z -
public static PtABS PtNull(float x,
float y,
float z,
java.lang.String name)
public static PtABS PtRnd(float x,
float y,
float z)
public static PtABS PtRnd(float x,
float y)
public static PtABS PtRnd(float x)
public static PtDER Pt(Pt p)
p -
public static PtDER Pt(Pt p,
java.lang.String name)
public static PtDER Pt(Pt ori,
Transform t)
ori - t -
public static PtDER Pt(Pt ori,
Transform t,
java.lang.String name)
public static XYZ[] bound(java.util.ArrayList pts)
public static Vertex boundCenter(XYZ[] bound)
public static void povRecorder()
public static void povRecorderStart()
public static void povRecorderStop()
public static void radRecorder()
public static void radRecorderStart()
public static void radRecorderStop()
public static void sliders(Parametric p)
public static void sliders(Group group)
main2 - @Deprecated public static void slidersAdd(Parametric p)
sliders(Parametric)
p - public static void slidersRemove(Parametric p)
public static void drawSliders()
@Deprecated public static void slidersToggle()
public static void drawSliders(boolean onOff)
onOff - public static void switchToMidiSliders()
public static void slidersReset()
public static void camTarget(float x,
float y)
x - y -
public static void camTarget(float x,
float y,
float z)
x - y - z - public static void camTarget(Obj baseObj)
baseObj - public static void camTarget(Group group)
public static void camTarget(Pts basePts)
basePts - public static void camTarget(Pt targetPt)
targetPt - public static void setCenter(Obj baseObj)
camTarget(Obj)
baseObj - @Deprecated public static void setCenter(Pts pts)
camTarget(Pts)
pts - @Deprecated public static void setCenter(Pt targetPt)
camTarget(Pt)
targetPt - public static void orientedDrawBegin(XYZ q)
public static void orientedDrawEnd()
public static void screenDrawBegin()
public static void screenDrawEnd()
public static void text3D(java.lang.String str,
XYZ position)
public static void text(java.lang.String str,
XYZ position)
public static void bsplineRes(int i)
public static void drawAxis()
public static void drawAxis(boolean onOff)
onOff - public static void drawReferenceFrame()
public static void drawReferenceFrame(boolean onOff)
onOff - public static long rndScheme(long sd)
public static long rndScheme()
public static void rndReset()
rndReset(int)public static void rndReset(int newRndCount)
newRndCount - rndReset()public static void rndNext()
rndPrev()public static void rndPrev()
rndNext()public static void seed()
seed(int)public static void seed(int _seed)
Anar.seed(0);
_seed - public static void displaySeed()
public static float rnd()
public static float rnd(float max)
max -
public static float rnd(float min,
float max)
min - max -
public static int rndi()
public static int rndi(float max)
max -
public static int rndi(float min,
float max)
min - max -
public static void println()
public static void println(java.lang.String str)
public static void println(double str)
public static void println(java.lang.Object o)
origin - public static void print(java.lang.String str)
public static void print(double str)
public static void print(java.lang.Object o)
origin -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||