|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.QuadricObject
public class QuadricObject
| Field Summary | |
|---|---|
PointObject[] |
P
|
static String[] |
Tags
|
double[] |
X
|
| Fields inherited from class carmetal.objects.ConstructionObject |
|---|
Back, Bold, Break, BreakHide, C, Cn, ColorIndex, ColorType, Conditionals, Count, DescriptionState, DisplaysText, DL, Flag, FormulaState, gotNCount, HasZ, Hidden, HideBreak, inConstruction, Indicated, INVISIBLE, IsDrawn, JobTarget, Keep, KeepClose, LabelSelected, Large, MainParameter, Name, NCount, NeedsRecompute, NORMAL, Obtuse, Parameter, RekFlag, RekValidating, Scratch, Selectable, Selected, ShowIndicatedName, ShowName, ShowValue, SizeState, Solid, SpecialColor, SpecialParameter, StrongSelected, SuperHidden, Target, Text, THICK, THIN, Tracked, Translation, TX1, TX2, TY1, TY2, Unit, Valid, Value, VRek, XcOffset, YcOffset |
| Constructor Summary | |
|---|---|
QuadricObject(carmetal.construction.Construction c,
PointObject[] p)
|
|
| Method Summary | |
|---|---|
boolean |
canInteresectWith(ConstructionObject o)
|
double |
computeLower(double x)
|
double |
computeUpper(double x)
|
ConstructionObject |
copy(double x,
double y)
This clones the object for macro construction. |
Enumeration |
depending()
Return an enumeration of objects, that this object depends on. |
void |
dragTo(double x,
double y)
|
boolean |
equals(ConstructionObject o)
|
String |
getDisplayValue()
To be overridden by the objects. |
int |
getDistance(PointObject P)
|
String |
getEquation()
|
int |
getN()
|
double |
getOldX()
|
double |
getOldY()
|
String |
getTag()
|
boolean |
hasUnit()
|
void |
keepBaricentricCoords(PointObject P)
|
void |
move(double x,
double y)
|
boolean |
moveable()
|
boolean |
nearto(int cc,
int rr,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
onlynearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object must be chosen with coordinates x,y, assuming it is near to these coordinates. |
void |
paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
void |
project(PointObject P)
|
void |
project(PointObject P,
double alpha)
|
void |
repulse(PointObject P)
|
void |
setDefaults()
|
void |
setTargetDefaults()
|
void |
snap(carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
startDrag(double x,
double y)
|
void |
translate()
Override in children! This translates the mother items. |
void |
updateText()
|
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public PointObject[] P
public double[] X
public static String[] Tags
| Constructor Detail |
|---|
public QuadricObject(carmetal.construction.Construction c,
PointObject[] p)
| Method Detail |
|---|
public void setDefaults()
setDefaults in class ConstructionObjectpublic void setTargetDefaults()
setTargetDefaults in class ConstructionObjectpublic String getTag()
getTag in class ConstructionObjectpublic int getN()
getN in class ConstructionObjectpublic void updateText()
updateText in class ConstructionObjectpublic void validate()
validate in class ConstructionObject
public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
paint in class ConstructionObjectpublic String getDisplayValue()
ConstructionObject
getDisplayValue in class ConstructionObjectpublic String getEquation()
getEquation in class ConstructionObject
public boolean nearto(int cc,
int rr,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObjectpublic double computeUpper(double x)
public double computeLower(double x)
public void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class ConstructionObjectpublic Enumeration depending()
ConstructionObject
depending in class ConstructionObjectpublic void translate()
ConstructionObject
translate in class ConstructionObject
public ConstructionObject copy(double x,
double y)
ConstructionObject
copy in class ConstructionObject
public boolean onlynearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
onlynearto in class ConstructionObjectpublic boolean equals(ConstructionObject o)
equals in class ConstructionObjectpublic boolean hasUnit()
hasUnit in class ConstructionObjectpublic void keepBaricentricCoords(PointObject P)
public int getDistance(PointObject P)
getDistance in class ConstructionObjectpublic void project(PointObject P)
project in interface PointonObject
public void project(PointObject P,
double alpha)
project in interface PointonObject
public void dragTo(double x,
double y)
dragTo in interface MoveableObject
public void move(double x,
double y)
move in interface MoveableObjectmove in class ConstructionObjectpublic boolean moveable()
moveable in interface MoveableObject
public void startDrag(double x,
double y)
startDrag in interface MoveableObjectpublic double getOldX()
getOldX in interface MoveableObjectpublic double getOldY()
getOldY in interface MoveableObjectpublic void snap(carmetal.rene.zirkel.ZirkelCanvas zc)
snap in class ConstructionObjectpublic boolean canInteresectWith(ConstructionObject o)
canInteresectWith in interface PointonObjectpublic void repulse(PointObject P)
repulse in interface PointonObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||