Back to index

salome-geom  6.5.0
Public Member Functions | Private Attributes | Static Private Attributes
GEOM_PY.sketcher.Sketcher Class Reference

List of all members.

Public Member Functions

def __init__
def startAtPoint
def translateToPoint
def translateWithVector
def translateWithAngleAndLength
def intersectXWithAngle
def intersectYWithAngle
def close
def toString
def getGeomWire

Private Attributes

 __xstart
 __ystart

Static Private Attributes

 __sketch = None
int __xstart = 0
int __ystart = 0

Detailed Description

Definition at line 54 of file sketcher.py.


Constructor & Destructor Documentation

Definition at line 60 of file sketcher.py.

00060 
00061     def __init__(self):
00062         self.__sketch = "Sketcher:"


Member Function Documentation

add a segment to reach the starting point and get a closed wire.

Definition at line 93 of file sketcher.py.

00093 
00094     def close(self):
00095         '''
00096         add a segment to reach the starting point and get a closed wire.
00097         '''
00098         self.__sketch = self.__sketch + ":WW"

Definition at line 102 of file sketcher.py.

00102 
00103     def getGeomWire(self):
00104         if not geompyEnable:
00105             return None
00106         wire = geompy.MakeSketcher(self.__sketch, [0, 0, 0, 0, 0, 1, 1, 0, -0])
00107         return wire
00108 #
00109 # ===============================================================
00110 # Use cases and unit tests
00111 # ===============================================================
#
def GEOM_PY.sketcher.Sketcher.intersectXWithAngle (   self,
  angle = 30,
  x = 100 
)
segment->direction->angle+length

Definition at line 85 of file sketcher.py.

00085 
00086     def intersectXWithAngle(self,angle=30,x=100):
00087         '''segment->direction->angle+length'''
00088         self.__sketch = self.__sketch + ":R "+str(angle)+":IX "+str(x)

def GEOM_PY.sketcher.Sketcher.intersectYWithAngle (   self,
  angle = 30,
  y = 100 
)
segment->direction->angle+length

Definition at line 89 of file sketcher.py.

00089 
00090     def intersectYWithAngle(self,angle=30,y=100):
00091         '''segment->direction->angle+length'''
00092         self.__sketch = self.__sketch + ":R "+str(angle)+":IY "+str(y)

def GEOM_PY.sketcher.Sketcher.startAtPoint (   self,
  x = 0,
  y = 0 
)

Definition at line 63 of file sketcher.py.

00063 
00064     def startAtPoint(self,x=0,y=0):
00065         self.__sketch = "Sketcher:F "+str(x)+" "+str(y)
00066         # the data x and y are registered to process the ending closure.
00067         self.__xstart = x
00068         self.__ystart = y

Definition at line 99 of file sketcher.py.

00099 
00100     def toString(self):
00101         return self.__sketch

def GEOM_PY.sketcher.Sketcher.translateToPoint (   self,
  x = 10,
  y = 0 
)
segment->point->absolute

Definition at line 69 of file sketcher.py.

00069 
00070     def translateToPoint(self,x=10,y=0):
00071         '''segment->point->absolute'''
00072         self.__sketch = self.__sketch + ":TT "+str(x)+" "+str(y) 

def GEOM_PY.sketcher.Sketcher.translateWithAngleAndLength (   self,
  angle = 30,
  length = 100 
)
segment->direction->angle+length

Definition at line 81 of file sketcher.py.

00081 
00082     def translateWithAngleAndLength(self,angle=30,length=100):
00083         '''segment->direction->angle+length'''
00084         self.__sketch = self.__sketch + ":R "+str(angle)+":L "+str(length)

def GEOM_PY.sketcher.Sketcher.translateWithVector (   self,
  deltax = 10,
  deltay = 0 
)
segment->point->relative

Definition at line 73 of file sketcher.py.

00073 
00074     def translateWithVector(self,deltax=10,deltay=0):
00075         '''segment->point->relative'''
00076         self.__sketch = self.__sketch + ":T "+str(deltax)+" "+str(deltay) 


Member Data Documentation

GEOM_PY.sketcher.Sketcher.__sketch = None [static, private]

Definition at line 56 of file sketcher.py.

int GEOM_PY.sketcher.Sketcher.__xstart = 0 [static, private]

Definition at line 57 of file sketcher.py.

Definition at line 66 of file sketcher.py.

int GEOM_PY.sketcher.Sketcher.__ystart = 0 [static, private]

Definition at line 58 of file sketcher.py.

Definition at line 67 of file sketcher.py.


The documentation for this class was generated from the following file: