|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.PrimitiveCircleObject
public class PrimitiveCircleObject
| Field Summary | |
|---|---|
protected double |
R
|
protected double |
X
|
protected double |
Y
|
| 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 | |
|---|---|
PrimitiveCircleObject(carmetal.construction.Construction c,
PointObject p)
|
|
| Method Summary | |
|---|---|
void |
addDep(PointObject p)
Add a point that depends on the circle. |
boolean |
canInteresectWith(ConstructionObject o)
|
void |
clearCircleDep()
|
void |
clearRange()
|
void |
computeA1A2()
|
boolean |
contains(double x,
double y)
Test, if the projection of (x,y) to the arc contains that point. |
double |
containsInside(PointObject P)
Returns 0.5, if the point is on the boundary, and 1, if it is inside. |
ConstructionObject |
copy(double x,
double y)
Need to setup the Dep array. |
Enumeration |
depending()
A circle depends on its midpoint at least. |
boolean |
equals(ConstructionObject o)
|
double |
getA1()
|
double |
getA2()
|
boolean |
getArc()
|
String |
getDisplayValue()
To be overridden by the objects. |
int |
getDistance(PointObject P)
|
PointObject |
getEnd()
|
String |
getEquation()
|
int |
getN()
|
PointObject |
getP1()
|
double |
getR()
|
PointObject |
getStart()
|
String |
getTag()
|
double |
getX()
|
double |
getY()
|
boolean |
hasRange()
|
static carmetal.rene.zirkel.structures.Coordinates |
intersect(PrimitiveCircleObject c1,
PrimitiveCircleObject c2)
|
boolean |
isFilled()
|
boolean |
isFilledForSelect()
|
boolean |
isPartial()
|
boolean |
keepInside(PointObject P)
|
boolean |
locallyLike(ConstructionObject o)
|
boolean |
maybeTransparent()
|
boolean |
nearto(int c,
int r,
boolean ignorefill,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
onlynearto(int c,
int r,
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)
|
Enumeration |
secondaryParams()
A circle will mark the midpoint as secondary parameter. |
void |
setArc(boolean flag)
|
void |
setDefaults()
|
void |
setFilled(boolean flag)
|
void |
setMR(PointObject p1,
double r)
|
void |
setPartial(boolean flag)
|
void |
setRange(PointObject p1,
PointObject p2)
|
void |
setRange(String s1,
String s2)
|
void |
setTargetDefaults()
|
void |
toggleHidden()
|
void |
translate()
Override in children! This translates the mother items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double X
protected double Y
protected double R
| Constructor Detail |
|---|
public PrimitiveCircleObject(carmetal.construction.Construction c,
PointObject p)
| Method Detail |
|---|
public void setMR(PointObject p1,
double r)
public void setDefaults()
setDefaults in class ConstructionObjectpublic void setTargetDefaults()
setTargetDefaults in class ConstructionObjectpublic String getTag()
getTag in class ConstructionObjectpublic int getN()
getN 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 c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObject
public boolean nearto(int c,
int r,
boolean ignorefill,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObject
public boolean onlynearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
onlynearto in class ConstructionObjectpublic double getX()
getX in class ConstructionObjectpublic double getY()
getY in class ConstructionObjectpublic double getR()
getR in class ConstructionObject
public static carmetal.rene.zirkel.structures.Coordinates intersect(PrimitiveCircleObject c1,
PrimitiveCircleObject c2)
public boolean equals(ConstructionObject o)
equals in class ConstructionObjectpublic void setPartial(boolean flag)
setPartial in class ConstructionObjectpublic void addDep(PointObject p)
p - public void clearCircleDep()
clearCircleDep in class ConstructionObjectpublic boolean isPartial()
isPartial in class ConstructionObjectpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class ConstructionObject
public ConstructionObject copy(double x,
double y)
copy in class ConstructionObjectpublic Enumeration depending()
depending in class ConstructionObjectpublic Enumeration secondaryParams()
secondaryParams in class ConstructionObjectpublic void toggleHidden()
toggleHidden in class ConstructionObjectpublic PointObject getP1()
public void setFilled(boolean flag)
setFilled in class ConstructionObjectpublic boolean isFilled()
isFilled in class ConstructionObjectpublic boolean isFilledForSelect()
isFilledForSelect in class ConstructionObjectpublic void translate()
ConstructionObject
translate in class ConstructionObject
public void setRange(String s1,
String s2)
public void setRange(PointObject p1,
PointObject p2)
public PointObject getStart()
public PointObject getEnd()
public double getA1()
public double getA2()
public boolean hasRange()
public void clearRange()
public boolean maybeTransparent()
maybeTransparent in class ConstructionObjectpublic boolean locallyLike(ConstructionObject o)
locallyLike in class ConstructionObjectpublic boolean getArc()
public void setArc(boolean flag)
public void computeA1A2()
public boolean contains(double x,
double y)
public void project(PointObject P)
project in interface PointonObjectpublic int getDistance(PointObject P)
getDistance in class ConstructionObject
public void project(PointObject P,
double alpha)
project in interface PointonObjectpublic double containsInside(PointObject P)
InsideObject
containsInside in interface InsideObjectpublic boolean keepInside(PointObject P)
keepInside in interface InsideObjectpublic 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 | |||||||||