Package esys :: Package pycad :: Module primitives :: Class Ellipse
[hide private]
[frames] | no frames]

Class Ellipse

   object --+            
            |            
PrimitiveBase --+        
                |        
       Manifold1D --+    
                    |    
          EllipseBase --+
                        |
           object --+   |
                    |   |
            Primitive --+
                        |
                       Ellipse

Defines an ellipse which is strictly smaller than π.

Instance Methods [hide private]
 
__init__(self, center, point_on_main_axis, start, end)
Creates an ellipse defined by the start point, end point, the center and a point on the main axis.
 
__neg__(self)
Returns a view onto the curve with reversed ordering.
 
getCenterPoint(self)
Returns the center.
 
getEndPoint(self)
Returns the end point.
 
getPointOnMainAxis(self)
Returns a point on the main axis.
 
getStartPoint(self)
Returns the start point.
 
isColocated(self, primitive)
Returns True if curves are at the same position.
 
substitute(self, sub_dict)
Returns a copy of self with substitutes for the primitives used to construct it given by the dictionary sub_dict.

Inherited from EllipseBase: collectPrimitiveBases

Inherited from Manifold1D: getBoundary, getElementDistribution, resetElementDistribution, setElementDistribution

Inherited from PrimitiveBase: __add__, __cmp__, __iadd__, __imul__, __isub__, __rmul__, __sub__, apply, copy, getConstructionPoints, getPrimitives, modifyBy, setLocalScale

Inherited from Primitive: __repr__, getDirectedID, getID, getUnderlyingPrimitive, hasSameOrientation

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, center, point_on_main_axis, start, end)
(Constructor)

 

Creates an ellipse defined by the start point, end point, the center and a point on the main axis.

Overrides: object.__init__

__neg__(self)

 

Returns a view onto the curve with reversed ordering.

Overrides: Primitive.__neg__

getEndPoint(self)

 

Returns the end point.

Overrides: Manifold1D.getEndPoint

getStartPoint(self)

 

Returns the start point.

Overrides: Manifold1D.getStartPoint

isColocated(self, primitive)

 

Returns True if curves are at the same position.

Overrides: Primitive.isColocated

substitute(self, sub_dict)

 

Returns a copy of self with substitutes for the primitives used to construct it given by the dictionary sub_dict. If a substitute for the object is given by sub_dict the value is returned, otherwise a new instance with substituted arguments is returned.

Overrides: Primitive.substitute