Source code for siconos.mechanics.collision.bodies

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _sicpybodies
else:
    import _sicpybodies

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


import weakref

class SwigPyIterator(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _sicpybodies.delete_SwigPyIterator

    def value(self) -> "PyObject *":
        return _sicpybodies.SwigPyIterator_value(self)

    def incr(self, n: "size_t"=1) -> "swig::SwigPyIterator *":
        return _sicpybodies.SwigPyIterator_incr(self, n)

    def decr(self, n: "size_t"=1) -> "swig::SwigPyIterator *":
        return _sicpybodies.SwigPyIterator_decr(self, n)

    def distance(self, x: "SwigPyIterator") -> "ptrdiff_t":
        return _sicpybodies.SwigPyIterator_distance(self, x)

    def equal(self, x: "SwigPyIterator") -> "bool":
        return _sicpybodies.SwigPyIterator_equal(self, x)

    def copy(self) -> "swig::SwigPyIterator *":
        return _sicpybodies.SwigPyIterator_copy(self)

    def next(self) -> "PyObject *":
        return _sicpybodies.SwigPyIterator_next(self)

    def __next__(self) -> "PyObject *":
        return _sicpybodies.SwigPyIterator___next__(self)

    def previous(self) -> "PyObject *":
        return _sicpybodies.SwigPyIterator_previous(self)

    def advance(self, n: "ptrdiff_t") -> "swig::SwigPyIterator *":
        return _sicpybodies.SwigPyIterator_advance(self, n)

    def __eq__(self, x: "SwigPyIterator") -> "bool":
        return _sicpybodies.SwigPyIterator___eq__(self, x)

    def __ne__(self, x: "SwigPyIterator") -> "bool":
        return _sicpybodies.SwigPyIterator___ne__(self, x)

    def __iadd__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator &":
        return _sicpybodies.SwigPyIterator___iadd__(self, n)

    def __isub__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator &":
        return _sicpybodies.SwigPyIterator___isub__(self, n)

    def __add__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator *":
        return _sicpybodies.SwigPyIterator___add__(self, n)

    def __sub__(self, *args) -> "ptrdiff_t":
        return _sicpybodies.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self

# Register SwigPyIterator in _sicpybodies:
_sicpybodies.SwigPyIterator_swigregister(SwigPyIterator)

SHARED_PTR_DISOWN = _sicpybodies.SHARED_PTR_DISOWN
[docs] class nullDeleter(object): r""" Using a shared_ptr to hold a pointer to a statically allocated object use create<type>SPtr(<type> &x) cf http://www.boost.org/doc/ """ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr def __call__(self, arg2: "void const *") -> "void": return _sicpybodies.nullDeleter___call__(self, arg2) __swig_destroy__ = _sicpybodies.delete_nullDeleter
# Register nullDeleter in _sicpybodies: _sicpybodies.nullDeleter_swigregister(nullDeleter) class VectorOfVectors(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _sicpybodies.VectorOfVectors_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _sicpybodies.VectorOfVectors___nonzero__(self) def __bool__(self) -> "bool": return _sicpybodies.VectorOfVectors___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type": return _sicpybodies.VectorOfVectors___len__(self) def __getslice__(self, i: "std::vector< std::shared_ptr< SiconosVector > >::difference_type", j: "std::vector< std::shared_ptr< SiconosVector > >::difference_type") -> "std::vector< std::shared_ptr< SiconosVector >,std::allocator< std::shared_ptr< SiconosVector > > > *": return _sicpybodies.VectorOfVectors___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _sicpybodies.VectorOfVectors___setslice__(self, *args) def __delslice__(self, i: "std::vector< std::shared_ptr< SiconosVector > >::difference_type", j: "std::vector< std::shared_ptr< SiconosVector > >::difference_type") -> "void": return _sicpybodies.VectorOfVectors___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _sicpybodies.VectorOfVectors___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &": return _sicpybodies.VectorOfVectors___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _sicpybodies.VectorOfVectors___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type": return _sicpybodies.VectorOfVectors_pop(self) def append(self, x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void": return _sicpybodies.VectorOfVectors_append(self, x) def empty(self) -> "bool": return _sicpybodies.VectorOfVectors_empty(self) def size(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type": return _sicpybodies.VectorOfVectors_size(self) def swap(self, v: "VectorOfVectors") -> "void": return _sicpybodies.VectorOfVectors_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator": return _sicpybodies.VectorOfVectors_begin(self) def end(self) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator": return _sicpybodies.VectorOfVectors_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SiconosVector > >::reverse_iterator": return _sicpybodies.VectorOfVectors_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SiconosVector > >::reverse_iterator": return _sicpybodies.VectorOfVectors_rend(self) def clear(self) -> "void": return _sicpybodies.VectorOfVectors_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosVector > >::allocator_type": return _sicpybodies.VectorOfVectors_get_allocator(self) def pop_back(self) -> "void": return _sicpybodies.VectorOfVectors_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator": return _sicpybodies.VectorOfVectors_erase(self, *args) def __init__(self, *args): _sicpybodies.VectorOfVectors_swiginit(self, _sicpybodies.new_VectorOfVectors(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void": return _sicpybodies.VectorOfVectors_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &": return _sicpybodies.VectorOfVectors_front(self) def back(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &": return _sicpybodies.VectorOfVectors_back(self) def assign(self, n: "std::vector< std::shared_ptr< SiconosVector > >::size_type", x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void": return _sicpybodies.VectorOfVectors_assign(self, n, x) def resize(self, *args) -> "void": return _sicpybodies.VectorOfVectors_resize(self, *args) def insert(self, *args) -> "void": return _sicpybodies.VectorOfVectors_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SiconosVector > >::size_type") -> "void": return _sicpybodies.VectorOfVectors_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type": return _sicpybodies.VectorOfVectors_capacity(self) __swig_destroy__ = _sicpybodies.delete_VectorOfVectors # Register VectorOfVectors in _sicpybodies: _sicpybodies.VectorOfVectors_swigregister(VectorOfVectors) class VectorOfBlockVectors(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _sicpybodies.VectorOfBlockVectors_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _sicpybodies.VectorOfBlockVectors___nonzero__(self) def __bool__(self) -> "bool": return _sicpybodies.VectorOfBlockVectors___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type": return _sicpybodies.VectorOfBlockVectors___len__(self) def __getslice__(self, i: "std::vector< std::shared_ptr< BlockVector > >::difference_type", j: "std::vector< std::shared_ptr< BlockVector > >::difference_type") -> "std::vector< std::shared_ptr< BlockVector >,std::allocator< std::shared_ptr< BlockVector > > > *": return _sicpybodies.VectorOfBlockVectors___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _sicpybodies.VectorOfBlockVectors___setslice__(self, *args) def __delslice__(self, i: "std::vector< std::shared_ptr< BlockVector > >::difference_type", j: "std::vector< std::shared_ptr< BlockVector > >::difference_type") -> "void": return _sicpybodies.VectorOfBlockVectors___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _sicpybodies.VectorOfBlockVectors___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &": return _sicpybodies.VectorOfBlockVectors___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _sicpybodies.VectorOfBlockVectors___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type": return _sicpybodies.VectorOfBlockVectors_pop(self) def append(self, x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void": return _sicpybodies.VectorOfBlockVectors_append(self, x) def empty(self) -> "bool": return _sicpybodies.VectorOfBlockVectors_empty(self) def size(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type": return _sicpybodies.VectorOfBlockVectors_size(self) def swap(self, v: "VectorOfBlockVectors") -> "void": return _sicpybodies.VectorOfBlockVectors_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< BlockVector > >::iterator": return _sicpybodies.VectorOfBlockVectors_begin(self) def end(self) -> "std::vector< std::shared_ptr< BlockVector > >::iterator": return _sicpybodies.VectorOfBlockVectors_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< BlockVector > >::reverse_iterator": return _sicpybodies.VectorOfBlockVectors_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< BlockVector > >::reverse_iterator": return _sicpybodies.VectorOfBlockVectors_rend(self) def clear(self) -> "void": return _sicpybodies.VectorOfBlockVectors_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< BlockVector > >::allocator_type": return _sicpybodies.VectorOfBlockVectors_get_allocator(self) def pop_back(self) -> "void": return _sicpybodies.VectorOfBlockVectors_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< BlockVector > >::iterator": return _sicpybodies.VectorOfBlockVectors_erase(self, *args) def __init__(self, *args): _sicpybodies.VectorOfBlockVectors_swiginit(self, _sicpybodies.new_VectorOfBlockVectors(*args)) def push_back(self, x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void": return _sicpybodies.VectorOfBlockVectors_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &": return _sicpybodies.VectorOfBlockVectors_front(self) def back(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &": return _sicpybodies.VectorOfBlockVectors_back(self) def assign(self, n: "std::vector< std::shared_ptr< BlockVector > >::size_type", x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void": return _sicpybodies.VectorOfBlockVectors_assign(self, n, x) def resize(self, *args) -> "void": return _sicpybodies.VectorOfBlockVectors_resize(self, *args) def insert(self, *args) -> "void": return _sicpybodies.VectorOfBlockVectors_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< BlockVector > >::size_type") -> "void": return _sicpybodies.VectorOfBlockVectors_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type": return _sicpybodies.VectorOfBlockVectors_capacity(self) __swig_destroy__ = _sicpybodies.delete_VectorOfBlockVectors # Register VectorOfBlockVectors in _sicpybodies: _sicpybodies.VectorOfBlockVectors_swigregister(VectorOfBlockVectors) class VectorOfMatrices(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _sicpybodies.VectorOfMatrices_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _sicpybodies.VectorOfMatrices___nonzero__(self) def __bool__(self) -> "bool": return _sicpybodies.VectorOfMatrices___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type": return _sicpybodies.VectorOfMatrices___len__(self) def __getslice__(self, i: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type") -> "std::vector< std::shared_ptr< SiconosMatrix >,std::allocator< std::shared_ptr< SiconosMatrix > > > *": return _sicpybodies.VectorOfMatrices___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _sicpybodies.VectorOfMatrices___setslice__(self, *args) def __delslice__(self, i: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type") -> "void": return _sicpybodies.VectorOfMatrices___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _sicpybodies.VectorOfMatrices___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &": return _sicpybodies.VectorOfMatrices___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _sicpybodies.VectorOfMatrices___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type": return _sicpybodies.VectorOfMatrices_pop(self) def append(self, x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void": return _sicpybodies.VectorOfMatrices_append(self, x) def empty(self) -> "bool": return _sicpybodies.VectorOfMatrices_empty(self) def size(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type": return _sicpybodies.VectorOfMatrices_size(self) def swap(self, v: "VectorOfMatrices") -> "void": return _sicpybodies.VectorOfMatrices_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator": return _sicpybodies.VectorOfMatrices_begin(self) def end(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator": return _sicpybodies.VectorOfMatrices_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::reverse_iterator": return _sicpybodies.VectorOfMatrices_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::reverse_iterator": return _sicpybodies.VectorOfMatrices_rend(self) def clear(self) -> "void": return _sicpybodies.VectorOfMatrices_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::allocator_type": return _sicpybodies.VectorOfMatrices_get_allocator(self) def pop_back(self) -> "void": return _sicpybodies.VectorOfMatrices_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator": return _sicpybodies.VectorOfMatrices_erase(self, *args) def __init__(self, *args): _sicpybodies.VectorOfMatrices_swiginit(self, _sicpybodies.new_VectorOfMatrices(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void": return _sicpybodies.VectorOfMatrices_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &": return _sicpybodies.VectorOfMatrices_front(self) def back(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &": return _sicpybodies.VectorOfMatrices_back(self) def assign(self, n: "std::vector< std::shared_ptr< SiconosMatrix > >::size_type", x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void": return _sicpybodies.VectorOfMatrices_assign(self, n, x) def resize(self, *args) -> "void": return _sicpybodies.VectorOfMatrices_resize(self, *args) def insert(self, *args) -> "void": return _sicpybodies.VectorOfMatrices_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SiconosMatrix > >::size_type") -> "void": return _sicpybodies.VectorOfMatrices_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type": return _sicpybodies.VectorOfMatrices_capacity(self) __swig_destroy__ = _sicpybodies.delete_VectorOfMatrices # Register VectorOfMatrices in _sicpybodies: _sicpybodies.VectorOfMatrices_swigregister(VectorOfMatrices) class VectorOfSMatrices(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _sicpybodies.VectorOfSMatrices_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _sicpybodies.VectorOfSMatrices___nonzero__(self) def __bool__(self) -> "bool": return _sicpybodies.VectorOfSMatrices___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type": return _sicpybodies.VectorOfSMatrices___len__(self) def __getslice__(self, i: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type") -> "std::vector< std::shared_ptr< SimpleMatrix >,std::allocator< std::shared_ptr< SimpleMatrix > > > *": return _sicpybodies.VectorOfSMatrices___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _sicpybodies.VectorOfSMatrices___setslice__(self, *args) def __delslice__(self, i: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type") -> "void": return _sicpybodies.VectorOfSMatrices___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _sicpybodies.VectorOfSMatrices___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &": return _sicpybodies.VectorOfSMatrices___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _sicpybodies.VectorOfSMatrices___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type": return _sicpybodies.VectorOfSMatrices_pop(self) def append(self, x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void": return _sicpybodies.VectorOfSMatrices_append(self, x) def empty(self) -> "bool": return _sicpybodies.VectorOfSMatrices_empty(self) def size(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type": return _sicpybodies.VectorOfSMatrices_size(self) def swap(self, v: "VectorOfSMatrices") -> "void": return _sicpybodies.VectorOfSMatrices_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator": return _sicpybodies.VectorOfSMatrices_begin(self) def end(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator": return _sicpybodies.VectorOfSMatrices_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::reverse_iterator": return _sicpybodies.VectorOfSMatrices_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::reverse_iterator": return _sicpybodies.VectorOfSMatrices_rend(self) def clear(self) -> "void": return _sicpybodies.VectorOfSMatrices_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::allocator_type": return _sicpybodies.VectorOfSMatrices_get_allocator(self) def pop_back(self) -> "void": return _sicpybodies.VectorOfSMatrices_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator": return _sicpybodies.VectorOfSMatrices_erase(self, *args) def __init__(self, *args): _sicpybodies.VectorOfSMatrices_swiginit(self, _sicpybodies.new_VectorOfSMatrices(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void": return _sicpybodies.VectorOfSMatrices_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &": return _sicpybodies.VectorOfSMatrices_front(self) def back(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &": return _sicpybodies.VectorOfSMatrices_back(self) def assign(self, n: "std::vector< std::shared_ptr< SimpleMatrix > >::size_type", x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void": return _sicpybodies.VectorOfSMatrices_assign(self, n, x) def resize(self, *args) -> "void": return _sicpybodies.VectorOfSMatrices_resize(self, *args) def insert(self, *args) -> "void": return _sicpybodies.VectorOfSMatrices_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SimpleMatrix > >::size_type") -> "void": return _sicpybodies.VectorOfSMatrices_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type": return _sicpybodies.VectorOfSMatrices_capacity(self) __swig_destroy__ = _sicpybodies.delete_VectorOfSMatrices # Register VectorOfSMatrices in _sicpybodies: _sicpybodies.VectorOfSMatrices_swigregister(VectorOfSMatrices) class VectorOfMemories(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _sicpybodies.VectorOfMemories_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _sicpybodies.VectorOfMemories___nonzero__(self) def __bool__(self) -> "bool": return _sicpybodies.VectorOfMemories___bool__(self) def __len__(self) -> "std::vector< SiconosMemory >::size_type": return _sicpybodies.VectorOfMemories___len__(self) def __getslice__(self, i: "std::vector< SiconosMemory >::difference_type", j: "std::vector< SiconosMemory >::difference_type") -> "std::vector< SiconosMemory,std::allocator< SiconosMemory > > *": return _sicpybodies.VectorOfMemories___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _sicpybodies.VectorOfMemories___setslice__(self, *args) def __delslice__(self, i: "std::vector< SiconosMemory >::difference_type", j: "std::vector< SiconosMemory >::difference_type") -> "void": return _sicpybodies.VectorOfMemories___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _sicpybodies.VectorOfMemories___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< SiconosMemory >::value_type const &": return _sicpybodies.VectorOfMemories___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _sicpybodies.VectorOfMemories___setitem__(self, *args) def pop(self) -> "std::vector< SiconosMemory >::value_type": return _sicpybodies.VectorOfMemories_pop(self) def append(self, x: "SiconosMemory") -> "void": return _sicpybodies.VectorOfMemories_append(self, x) def empty(self) -> "bool": return _sicpybodies.VectorOfMemories_empty(self) def size(self) -> "std::vector< SiconosMemory >::size_type": return _sicpybodies.VectorOfMemories_size(self) def swap(self, v: "VectorOfMemories") -> "void": return _sicpybodies.VectorOfMemories_swap(self, v) def begin(self) -> "std::vector< SiconosMemory >::iterator": return _sicpybodies.VectorOfMemories_begin(self) def end(self) -> "std::vector< SiconosMemory >::iterator": return _sicpybodies.VectorOfMemories_end(self) def rbegin(self) -> "std::vector< SiconosMemory >::reverse_iterator": return _sicpybodies.VectorOfMemories_rbegin(self) def rend(self) -> "std::vector< SiconosMemory >::reverse_iterator": return _sicpybodies.VectorOfMemories_rend(self) def clear(self) -> "void": return _sicpybodies.VectorOfMemories_clear(self) def get_allocator(self) -> "std::vector< SiconosMemory >::allocator_type": return _sicpybodies.VectorOfMemories_get_allocator(self) def pop_back(self) -> "void": return _sicpybodies.VectorOfMemories_pop_back(self) def erase(self, *args) -> "std::vector< SiconosMemory >::iterator": return _sicpybodies.VectorOfMemories_erase(self, *args) def __init__(self, *args): _sicpybodies.VectorOfMemories_swiginit(self, _sicpybodies.new_VectorOfMemories(*args)) def push_back(self, x: "SiconosMemory") -> "void": return _sicpybodies.VectorOfMemories_push_back(self, x) def front(self) -> "std::vector< SiconosMemory >::value_type const &": return _sicpybodies.VectorOfMemories_front(self) def back(self) -> "std::vector< SiconosMemory >::value_type const &": return _sicpybodies.VectorOfMemories_back(self) def assign(self, n: "std::vector< SiconosMemory >::size_type", x: "SiconosMemory") -> "void": return _sicpybodies.VectorOfMemories_assign(self, n, x) def resize(self, *args) -> "void": return _sicpybodies.VectorOfMemories_resize(self, *args) def insert(self, *args) -> "void": return _sicpybodies.VectorOfMemories_insert(self, *args) def reserve(self, n: "std::vector< SiconosMemory >::size_type") -> "void": return _sicpybodies.VectorOfMemories_reserve(self, n) def capacity(self) -> "std::vector< SiconosMemory >::size_type": return _sicpybodies.VectorOfMemories_capacity(self) __swig_destroy__ = _sicpybodies.delete_VectorOfMemories # Register VectorOfMemories in _sicpybodies: _sicpybodies.VectorOfMemories_swigregister(VectorOfMemories) class UnsignedIntVector(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _sicpybodies.UnsignedIntVector_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _sicpybodies.UnsignedIntVector___nonzero__(self) def __bool__(self) -> "bool": return _sicpybodies.UnsignedIntVector___bool__(self) def __len__(self) -> "std::vector< unsigned int >::size_type": return _sicpybodies.UnsignedIntVector___len__(self) def __getslice__(self, i: "std::vector< unsigned int >::difference_type", j: "std::vector< unsigned int >::difference_type") -> "std::vector< unsigned int,std::allocator< unsigned int > > *": return _sicpybodies.UnsignedIntVector___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _sicpybodies.UnsignedIntVector___setslice__(self, *args) def __delslice__(self, i: "std::vector< unsigned int >::difference_type", j: "std::vector< unsigned int >::difference_type") -> "void": return _sicpybodies.UnsignedIntVector___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _sicpybodies.UnsignedIntVector___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< unsigned int >::value_type const &": return _sicpybodies.UnsignedIntVector___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _sicpybodies.UnsignedIntVector___setitem__(self, *args) def pop(self) -> "std::vector< unsigned int >::value_type": return _sicpybodies.UnsignedIntVector_pop(self) def append(self, x: "std::vector< unsigned int >::value_type const &") -> "void": return _sicpybodies.UnsignedIntVector_append(self, x) def empty(self) -> "bool": return _sicpybodies.UnsignedIntVector_empty(self) def size(self) -> "std::vector< unsigned int >::size_type": return _sicpybodies.UnsignedIntVector_size(self) def swap(self, v: "UnsignedIntVector") -> "void": return _sicpybodies.UnsignedIntVector_swap(self, v) def begin(self) -> "std::vector< unsigned int >::iterator": return _sicpybodies.UnsignedIntVector_begin(self) def end(self) -> "std::vector< unsigned int >::iterator": return _sicpybodies.UnsignedIntVector_end(self) def rbegin(self) -> "std::vector< unsigned int >::reverse_iterator": return _sicpybodies.UnsignedIntVector_rbegin(self) def rend(self) -> "std::vector< unsigned int >::reverse_iterator": return _sicpybodies.UnsignedIntVector_rend(self) def clear(self) -> "void": return _sicpybodies.UnsignedIntVector_clear(self) def get_allocator(self) -> "std::vector< unsigned int >::allocator_type": return _sicpybodies.UnsignedIntVector_get_allocator(self) def pop_back(self) -> "void": return _sicpybodies.UnsignedIntVector_pop_back(self) def erase(self, *args) -> "std::vector< unsigned int >::iterator": return _sicpybodies.UnsignedIntVector_erase(self, *args) def __init__(self, *args): _sicpybodies.UnsignedIntVector_swiginit(self, _sicpybodies.new_UnsignedIntVector(*args)) def push_back(self, x: "std::vector< unsigned int >::value_type const &") -> "void": return _sicpybodies.UnsignedIntVector_push_back(self, x) def front(self) -> "std::vector< unsigned int >::value_type const &": return _sicpybodies.UnsignedIntVector_front(self) def back(self) -> "std::vector< unsigned int >::value_type const &": return _sicpybodies.UnsignedIntVector_back(self) def assign(self, n: "std::vector< unsigned int >::size_type", x: "std::vector< unsigned int >::value_type const &") -> "void": return _sicpybodies.UnsignedIntVector_assign(self, n, x) def resize(self, *args) -> "void": return _sicpybodies.UnsignedIntVector_resize(self, *args) def insert(self, *args) -> "void": return _sicpybodies.UnsignedIntVector_insert(self, *args) def reserve(self, n: "std::vector< unsigned int >::size_type") -> "void": return _sicpybodies.UnsignedIntVector_reserve(self, n) def capacity(self) -> "std::vector< unsigned int >::size_type": return _sicpybodies.UnsignedIntVector_capacity(self) __swig_destroy__ = _sicpybodies.delete_UnsignedIntVector # Register UnsignedIntVector in _sicpybodies: _sicpybodies.UnsignedIntVector_swigregister(UnsignedIntVector) import siconos.kernel
[docs] class CircularDS(siconos.kernel.LagrangianDS): r""" Definition of a 2D circular shape - Inherits from LagrangianDS""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr radius = property(_sicpybodies.CircularDS_radius_get, _sicpybodies.CircularDS_radius_set) massValue = property(_sicpybodies.CircularDS_massValue_get, _sicpybodies.CircularDS_massValue_set) def __init__(self, *args): if self.__class__ == CircularDS: _self = None else: _self = self _sicpybodies.CircularDS_swiginit(self, _sicpybodies.new_CircularDS(_self, *args)) __swig_destroy__ = _sicpybodies.delete_CircularDS def getQ(self, pos: "unsigned int") -> "double": return _sicpybodies.CircularDS_getQ(self, pos) def getVelocity(self, pos: "unsigned int") -> "double": return _sicpybodies.CircularDS_getVelocity(self, pos) def getMassValue(self) -> "double": return _sicpybodies.CircularDS_getMassValue(self) def getRadius(self) -> "double": return _sicpybodies.CircularDS_getRadius(self) def __disown__(self): self.this.disown() _sicpybodies.disown_CircularDS(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _sicpybodies.CircularDS__zeroPlugin(self)
# Register CircularDS in _sicpybodies: _sicpybodies.CircularDS_swigregister(CircularDS)
[docs] class CircularR(siconos.kernel.LagrangianScleronomousR): r""" Two circle relation - Inherits from LagrangianScleronomousR""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _r1 = property(_sicpybodies.CircularR__r1_get, _sicpybodies.CircularR__r1_set) _r2 = property(_sicpybodies.CircularR__r2_get, _sicpybodies.CircularR__r2_set) def __init__(self, r1: "double", r2: "double"): r""" Constructor :param disk1: radius :param disk2: radius """ if self.__class__ == CircularR: _self = None else: _self = self _sicpybodies.CircularR_swiginit(self, _sicpybodies.new_CircularR(_self, r1, r2)) __swig_destroy__ = _sicpybodies.delete_CircularR def getRadius1(self) -> "double": return _sicpybodies.CircularR_getRadius1(self) def getRadius2(self) -> "double": return _sicpybodies.CircularR_getRadius2(self) def distance(self, arg0: "double", arg1: "double", arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double": return _sicpybodies.CircularR_distance(self, arg0, arg1, arg2, arg3, arg4, arg5) def __disown__(self): self.this.disown() _sicpybodies.disown_CircularR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" reset all plugins""" return _sicpybodies.CircularR__zeroPlugin(self)
# Register CircularR in _sicpybodies: _sicpybodies.CircularR_swigregister(CircularR)
[docs] class Disk(CircularDS, ): r""" Definition of a 2D disk - Inherits from LagrangianDS""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, radius: "double", mass: "double", position: "SP::SiconosVector", velocity: "SP::SiconosVector"): r""" Constructor :type radius: float :param radius: :type mass: float :param mass: :type position: :py:class:`SiconosVector` :param position: vector :type velocity: :py:class:`SiconosVector` :param velocity: vector """ if self.__class__ == Disk: _self = None else: _self = self _sicpybodies.Disk_swiginit(self, _sicpybodies.new_Disk(_self, radius, mass, position, velocity)) __swig_destroy__ = _sicpybodies.delete_Disk def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void": return _sicpybodies.Disk_acceptSPBase(self, tourist) def acceptBase(self, tourist: "SiconosVisitor &") -> "void": return _sicpybodies.Disk_acceptBase(self, tourist) def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void": return _sicpybodies.Disk_acceptSerializerBase(self, serializer) def __disown__(self): self.this.disown() _sicpybodies.disown_Disk(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _sicpybodies.Disk__zeroPlugin(self)
# Register Disk in _sicpybodies: _sicpybodies.Disk_swigregister(Disk)
[docs] class Circle(CircularDS, ): r"""Definition of a 2D Circle - Inherits from CircularDS""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): r""" Constructor :type radius: float :param radius: :type mass: float :param mass: :type position: :py:class:`SiconosVector` :param position: vector :type velocity: :py:class:`SiconosVector` :param velocity: vector """ if self.__class__ == Circle: _self = None else: _self = self _sicpybodies.Circle_swiginit(self, _sicpybodies.new_Circle(_self, *args)) __swig_destroy__ = _sicpybodies.delete_Circle def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void": return _sicpybodies.Circle_acceptSPBase(self, tourist) def __disown__(self): self.this.disown() _sicpybodies.disown_Circle(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _sicpybodies.Circle__zeroPlugin(self)
# Register Circle in _sicpybodies: _sicpybodies.Circle_swigregister(Circle)
[docs] class DiskDiskR(CircularR, ): r""" Two disks relation - Inherits from LagrangianScleronomousR""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, disk1: "double", disk2: "double"): r""" Constructor :type disk1: float :param disk1: radius :type disk2: float :param disk2: radius """ if self.__class__ == DiskDiskR: _self = None else: _self = self _sicpybodies.DiskDiskR_swiginit(self, _sicpybodies.new_DiskDiskR(_self, disk1, disk2)) __swig_destroy__ = _sicpybodies.delete_DiskDiskR def distance(self, arg0: "double", arg1: "double", arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double": return _sicpybodies.DiskDiskR_distance(self, arg0, arg1, arg2, arg3, arg4, arg5)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(q,z) of the Relation :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.DiskDiskR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void": r""" to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq()) :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) """ return _sicpybodies.DiskDiskR_computeJachq(self, q, z)
def __disown__(self): self.this.disown() _sicpybodies.disown_DiskDiskR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" reset all plugins""" return _sicpybodies.DiskDiskR__zeroPlugin(self)
# Register DiskDiskR in _sicpybodies: _sicpybodies.DiskDiskR_swigregister(DiskDiskR)
[docs] class DiskPlanR(siconos.kernel.LagrangianScleronomousR, ): r""" disk - plan relation - Inherits from LagrangianScleronomousR""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): r""" *Overload 1:* Infinite Plan :type r: float :param r: disk radius :type A: float :param A: component of line equation Ax + By + C = 0 :type B: float :param B: component of line equation Ax + By + C = 0 :type C: float :param C: component of line equation Ax + By + C = 0 | *Overload 2:* Finite or infinite Plan (segment) :type disk: float :param disk: radius :type A: float :param A: :type B: float :param B: :type C: float :param C: :type xCenter: float :param xCenter: :type yCenter: float :param yCenter: :type width: float :param width: | *Overload 3:* Finite Plan """ if self.__class__ == DiskPlanR: _self = None else: _self = self _sicpybodies.DiskPlanR_swiginit(self, _sicpybodies.new_DiskPlanR(_self, *args)) __swig_destroy__ = _sicpybodies.delete_DiskPlanR def distance(self, x: "double", y: "double", r: "double") -> "double": return _sicpybodies.DiskPlanR_distance(self, x, y, r) def getRadius(self) -> "double": return _sicpybodies.DiskPlanR_getRadius(self) def getA(self) -> "double": return _sicpybodies.DiskPlanR_getA(self) def getB(self) -> "double": return _sicpybodies.DiskPlanR_getB(self) def getC(self) -> "double": return _sicpybodies.DiskPlanR_getC(self) def gethypotAB(self) -> "double": return _sicpybodies.DiskPlanR_gethypotAB(self) def getXCenter(self) -> "double": return _sicpybodies.DiskPlanR_getXCenter(self) def getYCenter(self) -> "double": return _sicpybodies.DiskPlanR_getYCenter(self) def getWidth(self) -> "double": return _sicpybodies.DiskPlanR_getWidth(self)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(t,q,z) of the Relation :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.DiskPlanR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void": r""" to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq()) :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) """ return _sicpybodies.DiskPlanR_computeJachq(self, q, z)
def equal(self, *args) -> "bool": return _sicpybodies.DiskPlanR_equal(self, *args) def isFinite(self) -> "bool": return _sicpybodies.DiskPlanR_isFinite(self) def __disown__(self): self.this.disown() _sicpybodies.disown_DiskPlanR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" reset all plugins""" return _sicpybodies.DiskPlanR__zeroPlugin(self)
# Register DiskPlanR in _sicpybodies: _sicpybodies.DiskPlanR_swigregister(DiskPlanR)
[docs] class DiskMovingPlanR(siconos.kernel.LagrangianRheonomousR, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, arg2: "FTime", arg3: "FTime", arg4: "FTime", arg5: "FTime", arg6: "FTime", arg7: "FTime", arg8: "double"): if self.__class__ == DiskMovingPlanR: _self = None else: _self = self _sicpybodies.DiskMovingPlanR_swiginit(self, _sicpybodies.new_DiskMovingPlanR(_self, arg2, arg3, arg4, arg5, arg6, arg7, arg8)) __swig_destroy__ = _sicpybodies.delete_DiskMovingPlanR def init(self, arg2: "double") -> "void": return _sicpybodies.DiskMovingPlanR_init(self, arg2)
[docs] def computeh(self, time: "double", q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(t,q,z) of the Relation :type time: float :param time: current time value :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.DiskMovingPlanR_computeh(self, time, q, z, y)
[docs] def computeJachq(self, time: "double", q: "BlockVector", z: "BlockVector") -> "void": r""" to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq()) :type time: float :param time: current time value :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) """ return _sicpybodies.DiskMovingPlanR_computeJachq(self, time, q, z)
[docs] def computehDot(self, time: "double", q: "BlockVector", z: "BlockVector") -> "void": r""" to compute the time-derivative of the output y = h(t,q,z), saved in attribute _hDot (access: hDot()) :type time: float :param time: current time value :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) """ return _sicpybodies.DiskMovingPlanR_computehDot(self, time, q, z)
def distance(self, arg2: "double", arg3: "double", arg4: "double") -> "double": return _sicpybodies.DiskMovingPlanR_distance(self, arg2, arg3, arg4) def setComputeAFunction(self, f: "FTime") -> "void": return _sicpybodies.DiskMovingPlanR_setComputeAFunction(self, f) def setComputeBFunction(self, f: "FTime") -> "void": return _sicpybodies.DiskMovingPlanR_setComputeBFunction(self, f) def setComputeCFunction(self, f: "FTime") -> "void": return _sicpybodies.DiskMovingPlanR_setComputeCFunction(self, f) def setComputeADotFunction(self, f: "FTime") -> "void": return _sicpybodies.DiskMovingPlanR_setComputeADotFunction(self, f) def setComputeBDotFunction(self, f: "FTime") -> "void": return _sicpybodies.DiskMovingPlanR_setComputeBDotFunction(self, f) def setComputeCDotFunction(self, f: "FTime") -> "void": return _sicpybodies.DiskMovingPlanR_setComputeCDotFunction(self, f) def equal(self, arg2: "FTime", arg3: "FTime", arg4: "FTime", arg5: "double") -> "bool": return _sicpybodies.DiskMovingPlanR_equal(self, arg2, arg3, arg4, arg5)
[docs] def computeA(self, t: "double") -> "void": r""" compute A :type t: float :param t: the time """ return _sicpybodies.DiskMovingPlanR_computeA(self, t)
[docs] def computeB(self, t: "double") -> "void": r""" compute B :type t: float :param t: the time """ return _sicpybodies.DiskMovingPlanR_computeB(self, t)
[docs] def computeC(self, t: "double") -> "void": r""" compute C :type t: float :param t: the time """ return _sicpybodies.DiskMovingPlanR_computeC(self, t)
[docs] def computeADot(self, t: "double") -> "void": r""" compute ADot :type t: float :param t: the time """ return _sicpybodies.DiskMovingPlanR_computeADot(self, t)
[docs] def computeBDot(self, t: "double") -> "void": r""" compute BDot :type t: float :param t: the time """ return _sicpybodies.DiskMovingPlanR_computeBDot(self, t)
[docs] def computeCDot(self, t: "double") -> "void": r""" compute CDot :type t: float :param t: the time """ return _sicpybodies.DiskMovingPlanR_computeCDot(self, t)
def __disown__(self): self.this.disown() _sicpybodies.disown_DiskMovingPlanR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" reset all plugins""" return _sicpybodies.DiskMovingPlanR__zeroPlugin(self)
# Register DiskMovingPlanR in _sicpybodies: _sicpybodies.DiskMovingPlanR_swigregister(DiskMovingPlanR)
[docs] class SphereLDS(siconos.kernel.LagrangianDS, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr radius = property(_sicpybodies.SphereLDS_radius_get, _sicpybodies.SphereLDS_radius_set) massValue = property(_sicpybodies.SphereLDS_massValue_get, _sicpybodies.SphereLDS_massValue_set) I = property(_sicpybodies.SphereLDS_I_get, _sicpybodies.SphereLDS_I_set) def __init__(self, *args): if self.__class__ == SphereLDS: _self = None else: _self = self _sicpybodies.SphereLDS_swiginit(self, _sicpybodies.new_SphereLDS(_self, *args)) __swig_destroy__ = _sicpybodies.delete_SphereLDS def getQ(self, pos: "unsigned int") -> "double": return _sicpybodies.SphereLDS_getQ(self, pos) def getVelocity(self, pos: "unsigned int") -> "double": return _sicpybodies.SphereLDS_getVelocity(self, pos) def getMassValue(self) -> "double": return _sicpybodies.SphereLDS_getMassValue(self) def getRadius(self) -> "double": return _sicpybodies.SphereLDS_getRadius(self)
[docs] def computeMass(self, *args) -> "void": return _sicpybodies.SphereLDS_computeMass(self, *args)
[docs] def computeFGyr(self, *args) -> "void": return _sicpybodies.SphereLDS_computeFGyr(self, *args)
[docs] def computeJacobianFGyrq(self, *args) -> "void": return _sicpybodies.SphereLDS_computeJacobianFGyrq(self, *args)
[docs] def computeJacobianFGyrqDot(self, *args) -> "void": return _sicpybodies.SphereLDS_computeJacobianFGyrqDot(self, *args)
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void": return _sicpybodies.SphereLDS_acceptSPBase(self, tourist) def acceptBase(self, tourist: "SiconosVisitor &") -> "void": return _sicpybodies.SphereLDS_acceptBase(self, tourist) def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void": return _sicpybodies.SphereLDS_acceptSerializerBase(self, serializer) def __disown__(self): self.this.disown() _sicpybodies.disown_SphereLDS(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _sicpybodies.SphereLDS__zeroPlugin(self)
# Register SphereLDS in _sicpybodies: _sicpybodies.SphereLDS_swigregister(SphereLDS)
[docs] class SphereNEDS(siconos.kernel.NewtonEulerDS, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr radius = property(_sicpybodies.SphereNEDS_radius_get, _sicpybodies.SphereNEDS_radius_set) def __init__(self, *args): if self.__class__ == SphereNEDS: _self = None else: _self = self _sicpybodies.SphereNEDS_swiginit(self, _sicpybodies.new_SphereNEDS(_self, *args)) __swig_destroy__ = _sicpybodies.delete_SphereNEDS def getQ(self, pos: "unsigned int") -> "double": return _sicpybodies.SphereNEDS_getQ(self, pos) def getVelocity(self, pos: "unsigned int") -> "double": return _sicpybodies.SphereNEDS_getVelocity(self, pos) def getRadius(self) -> "double": return _sicpybodies.SphereNEDS_getRadius(self) def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void": return _sicpybodies.SphereNEDS_acceptSPBase(self, tourist) def acceptBase(self, tourist: "SiconosVisitor &") -> "void": return _sicpybodies.SphereNEDS_acceptBase(self, tourist) def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void": return _sicpybodies.SphereNEDS_acceptSerializerBase(self, serializer) def __disown__(self): self.this.disown() _sicpybodies.disown_SphereNEDS(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _sicpybodies.SphereNEDS__zeroPlugin(self)
# Register SphereNEDS in _sicpybodies: _sicpybodies.SphereNEDS_swigregister(SphereNEDS)
[docs] class SphereLDSPlanR(siconos.kernel.LagrangianScleronomousR, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, r: "double", A: "double", B: "double", C: "double", D: "double"): r""" Constructor :type r: float :param r: disk radius :type A: float :param A: :type B: float :param B: :type C: float :param C: :type D: float :param D: """ if self.__class__ == SphereLDSPlanR: _self = None else: _self = self _sicpybodies.SphereLDSPlanR_swiginit(self, _sicpybodies.new_SphereLDSPlanR(_self, r, A, B, C, D)) __swig_destroy__ = _sicpybodies.delete_SphereLDSPlanR def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double": return _sicpybodies.SphereLDSPlanR_distance(self, arg2, arg3, arg4, arg5)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(q,z) of the Relation :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.SphereLDSPlanR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void": r""" to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq()) :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) """ return _sicpybodies.SphereLDSPlanR_computeJachq(self, q, z)
def equal(self, _A: "double", _B: "double", _C: "double", _D: "double", _r: "double") -> "bool": return _sicpybodies.SphereLDSPlanR_equal(self, _A, _B, _C, _D, _r) def __disown__(self): self.this.disown() _sicpybodies.disown_SphereLDSPlanR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" reset all plugins""" return _sicpybodies.SphereLDSPlanR__zeroPlugin(self)
# Register SphereLDSPlanR in _sicpybodies: _sicpybodies.SphereLDSPlanR_swigregister(SphereLDSPlanR)
[docs] class SphereNEDSPlanR(siconos.kernel.NewtonEuler3DR, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, r: "double", A: "double", B: "double", C: "double", D: "double"): r""" Constructor :type r: float :param r: disk radius :type A: float :param A: :type B: float :param B: :type C: float :param C: :type D: float :param D: """ if self.__class__ == SphereNEDSPlanR: _self = None else: _self = self _sicpybodies.SphereNEDSPlanR_swiginit(self, _sicpybodies.new_SphereNEDSPlanR(_self, r, A, B, C, D))
[docs] def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double": return _sicpybodies.SphereNEDSPlanR_distance(self, arg2, arg3, arg4, arg5)
[docs] def computeh(self, time: "double", q0: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(t,q,z) of the Relation :type time: float :param time: current time value :param q: coordinates of the dynamical systems involved in the relation :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.SphereNEDSPlanR_computeh(self, time, q0, y)
def equal(self, _A: "double", _B: "double", _C: "double", _D: "double", _r: "double") -> "bool": return _sicpybodies.SphereNEDSPlanR_equal(self, _A, _B, _C, _D, _r) __swig_destroy__ = _sicpybodies.delete_SphereNEDSPlanR def __disown__(self): self.this.disown() _sicpybodies.disown_SphereNEDSPlanR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" To initialize all the plugin functions with nullptr.""" return _sicpybodies.SphereNEDSPlanR__zeroPlugin(self)
# Register SphereNEDSPlanR in _sicpybodies: _sicpybodies.SphereNEDSPlanR_swigregister(SphereNEDSPlanR)
[docs] class SphereLDSSphereLDSR(siconos.kernel.LagrangianScleronomousR, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, r1: "double", r2: "double"): r""" Constructor :type r1: float :param r1: disk1 radius :type r2: float :param r2: disk2 radius """ if self.__class__ == SphereLDSSphereLDSR: _self = None else: _self = self _sicpybodies.SphereLDSSphereLDSR_swiginit(self, _sicpybodies.new_SphereLDSSphereLDSR(_self, r1, r2)) def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double", arg6: "double", arg7: "double", arg8: "double", arg9: "double") -> "double": return _sicpybodies.SphereLDSSphereLDSR_distance(self, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(t,q,z) of the Relation :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.SphereLDSSphereLDSR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void": r""" to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq()) :type q: :py:class:`BlockVector` :param q: coordinates of the dynamical systems involved in the relation :type z: :py:class:`BlockVector` :param z: user defined parameters (optional) """ return _sicpybodies.SphereLDSSphereLDSR_computeJachq(self, q, z)
__swig_destroy__ = _sicpybodies.delete_SphereLDSSphereLDSR def __disown__(self): self.this.disown() _sicpybodies.disown_SphereLDSSphereLDSR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" reset all plugins""" return _sicpybodies.SphereLDSSphereLDSR__zeroPlugin(self)
# Register SphereLDSSphereLDSR in _sicpybodies: _sicpybodies.SphereLDSSphereLDSR_swigregister(SphereLDSSphereLDSR)
[docs] class SphereNEDSSphereNEDSR(siconos.kernel.NewtonEuler3DR, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, r1: "double", r2: "double"): r""" Constructor :type r1: float :param r1: disk1 radius :type r2: float :param r2: disk2 radius """ if self.__class__ == SphereNEDSSphereNEDSR: _self = None else: _self = self _sicpybodies.SphereNEDSSphereNEDSR_swiginit(self, _sicpybodies.new_SphereNEDSSphereNEDSR(_self, r1, r2))
[docs] def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double", arg6: "double", arg7: "double", arg8: "double", arg9: "double") -> "double": return _sicpybodies.SphereNEDSSphereNEDSR_distance(self, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
[docs] def computeh(self, time: "double", q0: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(t,q,z) of the Relation :type time: float :param time: current time value :param q: coordinates of the dynamical systems involved in the relation :type y: :py:class:`SiconosVector` :param y: the resulting vector """ return _sicpybodies.SphereNEDSSphereNEDSR_computeh(self, time, q0, y)
__swig_destroy__ = _sicpybodies.delete_SphereNEDSSphereNEDSR def __disown__(self): self.this.disown() _sicpybodies.disown_SphereNEDSSphereNEDSR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" To initialize all the plugin functions with nullptr.""" return _sicpybodies.SphereNEDSSphereNEDSR__zeroPlugin(self)
# Register SphereNEDSSphereNEDSR in _sicpybodies: _sicpybodies.SphereNEDSSphereNEDSR_swigregister(SphereNEDSSphereNEDSR)