#include <Polygon.h>
Public Member Functions | |
Rectangle (GiNaC::ex p0, GiNaC::ex p1, const std::string &subscript="") | |
Rectangle (GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, const std::string &subscript="") | |
Rectangle (const Rectangle &rectangle) | |
virtual | ~Rectangle () |
virtual unsigned int | no_space_dim () const |
virtual Line | line (unsigned int i) const |
virtual GiNaC::ex | repr (Repr_format format=SUBS_PERFORMED) const |
virtual const std::string | str () const |
virtual GiNaC::ex | integrate (GiNaC::ex f, Repr_format format=SUBS_PERFORMED) |
virtual Rectangle * | copy () const |
def | __init__ |
def | no_space_dim |
def | line |
def | repr |
def | str |
def | integrate |
def | copy |
Public Attributes | |
this | |
Protected Member Functions | |
Rectangle (const std::string &subscript="") | |
Static Private Attributes | |
dictionary | __swig_setmethods__ = {} |
tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, Rectangle, name, value) |
dictionary | __swig_getmethods__ = {} |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, Rectangle, name) |
__repr__ = _swig_repr | |
__swig_destroy__ = _SyFi.delete_Rectangle | |
__del__ = lambdaself:None; |
Proxy of C++ SyFi::Rectangle class
Definition at line 130 of file Polygon.h.
SyFi::Rectangle::Rectangle | ( | const std::string & | subscript = "" |
) | [protected] |
Referenced by copy().
SyFi::Rectangle::Rectangle | ( | GiNaC::ex | p0, | |
GiNaC::ex | p1, | |||
const std::string & | subscript = "" | |||
) |
SyFi::Rectangle::Rectangle | ( | GiNaC::ex | p0, | |
GiNaC::ex | p1, | |||
GiNaC::ex | p2, | |||
GiNaC::ex | p3, | |||
const std::string & | subscript = "" | |||
) |
SyFi::Rectangle::Rectangle | ( | const Rectangle & | rectangle | ) |
virtual SyFi::Rectangle::~Rectangle | ( | ) | [inline, virtual] |
def SyFi::Rectangle::__init__ | ( | self, | ||
args | ||||
) |
__init__(self, GiNaC::ex p0, GiNaC::ex p1, string subscript = "") -> Rectangle __init__(self, GiNaC::ex p0, GiNaC::ex p1) -> Rectangle __init__(self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, string subscript = "") -> Rectangle __init__(self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3) -> Rectangle __init__(self, Rectangle rectangle) -> Rectangle
Reimplemented in SyFi::ReferenceRectangle.
Definition at line 1636 of file SyFi.py.
01636 : 01637 """ 01638 __init__(self, GiNaC::ex p0, GiNaC::ex p1, string subscript = "") -> Rectangle 01639 __init__(self, GiNaC::ex p0, GiNaC::ex p1) -> Rectangle 01640 __init__(self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, 01641 string subscript = "") -> Rectangle 01642 __init__(self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3) -> Rectangle 01643 __init__(self, Rectangle rectangle) -> Rectangle 01644 """ 01645 this = _SyFi.new_Rectangle(*args) 01646 try: self.this.append(this) 01647 except: self.this = this
def SyFi::Rectangle::copy | ( | self | ) |
copy(self) -> Rectangle
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceRectangle.
Definition at line 1676 of file SyFi.py.
01676 : 01677 """copy(self) -> Rectangle""" 01678 return _SyFi.Rectangle_copy(self) 01679 Rectangle_swigregister = _SyFi.Rectangle_swigregister
Rectangle * SyFi::Rectangle::copy | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceRectangle.
Definition at line 698 of file Polygon.cpp.
References Rectangle().
00699 { 00700 return new Rectangle(*this); 00701 }
def SyFi::Rectangle::integrate | ( | self, | ||
args | ||||
) |
integrate(self, GiNaC::ex f, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex integrate(self, GiNaC::ex f) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 1669 of file SyFi.py.
01669 : 01670 """ 01671 integrate(self, GiNaC::ex f, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex 01672 integrate(self, GiNaC::ex f) -> GiNaC::ex 01673 """ 01674 return _SyFi.Rectangle_integrate(self, *args) 01675 def copy(self):
virtual GiNaC::ex SyFi::Rectangle::integrate | ( | GiNaC::ex | f, | |
Repr_format | format = SUBS_PERFORMED | |||
) | [virtual] |
def SyFi::Rectangle::line | ( | self, | ||
args | ||||
) |
line(self, unsigned int i) -> Line
Reimplemented from SyFi::Polygon.
Definition at line 1654 of file SyFi.py.
01654 : 01655 """line(self, unsigned int i) -> Line""" 01656 return _SyFi.Rectangle_line(self, *args) 01657 def repr(self, *args):
Line SyFi::Rectangle::line | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 708 of file Polygon.cpp.
References SyFi::istr(), SyFi::Polygon::p, and SyFi::Polygon::subscript.
00709 { 00710 if ( i == 0) return Line(p[0],p[1], istr(subscript,i)); 00711 else if ( i == 1) return Line(p[1],p[2], istr(subscript,i)); 00712 else if ( i == 2) return Line(p[2],p[3], istr(subscript,i)); 00713 else if ( i == 3) return Line(p[3],p[0], istr(subscript,i)); 00714 00715 throw std::out_of_range("Line index is out of range!"); 00716 }
def SyFi::Rectangle::no_space_dim | ( | self | ) |
no_space_dim(self) -> unsigned int
Reimplemented from SyFi::Polygon.
Definition at line 1650 of file SyFi.py.
01650 : 01651 """no_space_dim(self) -> unsigned int""" 01652 return _SyFi.Rectangle_no_space_dim(self) 01653 def line(self, *args):
unsigned int SyFi::Rectangle::no_space_dim | ( | ) | const [virtual] |
def SyFi::Rectangle::repr | ( | self, | ||
args | ||||
) |
repr(self, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex repr(self) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 1658 of file SyFi.py.
01658 : 01659 """ 01660 repr(self, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex 01661 repr(self) -> GiNaC::ex 01662 """ 01663 return _SyFi.Rectangle_repr(self, *args) 01664 def str(self):
ex SyFi::Rectangle::repr | ( | Repr_format | format = SUBS_PERFORMED |
) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 718 of file Polygon.cpp.
References SyFi::Polygon::p, run::s, SyFi::t, and SyFi::x.
Referenced by _wrap_Rectangle_repr__SWIG_1(), and main().
00719 { 00720 lst ret; 00721 GiNaC::symbol r("r"), s("s"), t("t"); 00722 if ( p[0].nops() == 2 ) 00723 { 00724 ret.append( x == p[0].op(0) + r*( p[2].op(0) - p[0].op(0))); 00725 ret.append( y == p[0].op(1) + s*( p[2].op(1) - p[0].op(1))); 00726 ret.append( lst(r,0,1) ); 00727 ret.append( lst(s,0,1) ); 00728 } 00729 else if ( p[0].nops() == 3 ) 00730 { 00731 ret.append( x == p[0].op(0) + r*( p[2].op(0) - p[0].op(0))); 00732 ret.append( y == p[0].op(1) + s*( p[2].op(1) - p[0].op(1))); 00733 ret.append( z == p[0].op(2) + t*( p[2].op(2) - p[0].op(2))); 00734 ret.append( lst(r,0,1) ); 00735 ret.append( lst(s,0,1) ); 00736 ret.append( lst(t,0,1) ); 00737 } 00738 return ret; 00739 }
def SyFi::Rectangle::str | ( | self | ) |
str(self) -> string
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceRectangle.
Definition at line 1665 of file SyFi.py.
01665 : 01666 """str(self) -> string""" 01667 return _SyFi.Rectangle_str(self) 01668 def integrate(self, *args):
const string SyFi::Rectangle::str | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceRectangle.
Definition at line 741 of file Polygon.cpp.
Referenced by _wrap_Rectangle_str().
00742 { 00743 std::ostringstream s; 00744 // s <<"Rectangle("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<")"; 00745 s <<"Rectangle"; 00746 return s.str(); 00747 }
SyFi::Rectangle::__del__ = lambdaself:None; [static, private] |
tuple SyFi::Rectangle::__getattr__ = lambdaself,name:_swig_getattr(self, Rectangle, name) [static, private] |
SyFi::Rectangle::__repr__ = _swig_repr [static, private] |
tuple SyFi::Rectangle::__setattr__ = lambdaself,name,value:_swig_setattr(self, Rectangle, name, value) [static, private] |
SyFi::Rectangle::__swig_destroy__ = _SyFi.delete_Rectangle [static, private] |
dictionary SyFi::Rectangle::__swig_getmethods__ = {} [static, private] |
dictionary SyFi::Rectangle::__swig_setmethods__ = {} [static, private] |