Source code for siconos.mechanics.collision.base

# 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 _pybase
else:
    import _pybase

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__ = _pybase.delete_SwigPyIterator

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SHARED_PTR_DISOWN = _pybase.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 _pybase.nullDeleter___call__(self, arg2) __swig_destroy__ = _pybase.delete_nullDeleter
# Register nullDeleter in _pybase: _pybase.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 _pybase.VectorOfVectors_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfVectors___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfVectors___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type": return _pybase.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 _pybase.VectorOfVectors___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.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 _pybase.VectorOfVectors___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfVectors___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &": return _pybase.VectorOfVectors___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfVectors___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type": return _pybase.VectorOfVectors_pop(self) def append(self, x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void": return _pybase.VectorOfVectors_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfVectors_empty(self) def size(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type": return _pybase.VectorOfVectors_size(self) def swap(self, v: "VectorOfVectors") -> "void": return _pybase.VectorOfVectors_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator": return _pybase.VectorOfVectors_begin(self) def end(self) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator": return _pybase.VectorOfVectors_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SiconosVector > >::reverse_iterator": return _pybase.VectorOfVectors_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SiconosVector > >::reverse_iterator": return _pybase.VectorOfVectors_rend(self) def clear(self) -> "void": return _pybase.VectorOfVectors_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosVector > >::allocator_type": return _pybase.VectorOfVectors_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfVectors_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator": return _pybase.VectorOfVectors_erase(self, *args) def __init__(self, *args): _pybase.VectorOfVectors_swiginit(self, _pybase.new_VectorOfVectors(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void": return _pybase.VectorOfVectors_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &": return _pybase.VectorOfVectors_front(self) def back(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &": return _pybase.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 _pybase.VectorOfVectors_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfVectors_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfVectors_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SiconosVector > >::size_type") -> "void": return _pybase.VectorOfVectors_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type": return _pybase.VectorOfVectors_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfVectors # Register VectorOfVectors in _pybase: _pybase.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 _pybase.VectorOfBlockVectors_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfBlockVectors___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfBlockVectors___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type": return _pybase.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 _pybase.VectorOfBlockVectors___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.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 _pybase.VectorOfBlockVectors___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfBlockVectors___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &": return _pybase.VectorOfBlockVectors___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfBlockVectors___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type": return _pybase.VectorOfBlockVectors_pop(self) def append(self, x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void": return _pybase.VectorOfBlockVectors_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfBlockVectors_empty(self) def size(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type": return _pybase.VectorOfBlockVectors_size(self) def swap(self, v: "VectorOfBlockVectors") -> "void": return _pybase.VectorOfBlockVectors_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< BlockVector > >::iterator": return _pybase.VectorOfBlockVectors_begin(self) def end(self) -> "std::vector< std::shared_ptr< BlockVector > >::iterator": return _pybase.VectorOfBlockVectors_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< BlockVector > >::reverse_iterator": return _pybase.VectorOfBlockVectors_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< BlockVector > >::reverse_iterator": return _pybase.VectorOfBlockVectors_rend(self) def clear(self) -> "void": return _pybase.VectorOfBlockVectors_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< BlockVector > >::allocator_type": return _pybase.VectorOfBlockVectors_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfBlockVectors_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< BlockVector > >::iterator": return _pybase.VectorOfBlockVectors_erase(self, *args) def __init__(self, *args): _pybase.VectorOfBlockVectors_swiginit(self, _pybase.new_VectorOfBlockVectors(*args)) def push_back(self, x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void": return _pybase.VectorOfBlockVectors_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &": return _pybase.VectorOfBlockVectors_front(self) def back(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &": return _pybase.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 _pybase.VectorOfBlockVectors_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfBlockVectors_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfBlockVectors_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< BlockVector > >::size_type") -> "void": return _pybase.VectorOfBlockVectors_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type": return _pybase.VectorOfBlockVectors_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfBlockVectors # Register VectorOfBlockVectors in _pybase: _pybase.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 _pybase.VectorOfMatrices_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfMatrices___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfMatrices___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type": return _pybase.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 _pybase.VectorOfMatrices___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.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 _pybase.VectorOfMatrices___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfMatrices___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &": return _pybase.VectorOfMatrices___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfMatrices___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type": return _pybase.VectorOfMatrices_pop(self) def append(self, x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void": return _pybase.VectorOfMatrices_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfMatrices_empty(self) def size(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type": return _pybase.VectorOfMatrices_size(self) def swap(self, v: "VectorOfMatrices") -> "void": return _pybase.VectorOfMatrices_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator": return _pybase.VectorOfMatrices_begin(self) def end(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator": return _pybase.VectorOfMatrices_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::reverse_iterator": return _pybase.VectorOfMatrices_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::reverse_iterator": return _pybase.VectorOfMatrices_rend(self) def clear(self) -> "void": return _pybase.VectorOfMatrices_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::allocator_type": return _pybase.VectorOfMatrices_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfMatrices_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator": return _pybase.VectorOfMatrices_erase(self, *args) def __init__(self, *args): _pybase.VectorOfMatrices_swiginit(self, _pybase.new_VectorOfMatrices(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void": return _pybase.VectorOfMatrices_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &": return _pybase.VectorOfMatrices_front(self) def back(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &": return _pybase.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 _pybase.VectorOfMatrices_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfMatrices_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfMatrices_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SiconosMatrix > >::size_type") -> "void": return _pybase.VectorOfMatrices_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type": return _pybase.VectorOfMatrices_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfMatrices # Register VectorOfMatrices in _pybase: _pybase.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 _pybase.VectorOfSMatrices_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfSMatrices___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfSMatrices___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type": return _pybase.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 _pybase.VectorOfSMatrices___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.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 _pybase.VectorOfSMatrices___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfSMatrices___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &": return _pybase.VectorOfSMatrices___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfSMatrices___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type": return _pybase.VectorOfSMatrices_pop(self) def append(self, x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void": return _pybase.VectorOfSMatrices_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfSMatrices_empty(self) def size(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type": return _pybase.VectorOfSMatrices_size(self) def swap(self, v: "VectorOfSMatrices") -> "void": return _pybase.VectorOfSMatrices_swap(self, v) def begin(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator": return _pybase.VectorOfSMatrices_begin(self) def end(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator": return _pybase.VectorOfSMatrices_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::reverse_iterator": return _pybase.VectorOfSMatrices_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::reverse_iterator": return _pybase.VectorOfSMatrices_rend(self) def clear(self) -> "void": return _pybase.VectorOfSMatrices_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::allocator_type": return _pybase.VectorOfSMatrices_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfSMatrices_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator": return _pybase.VectorOfSMatrices_erase(self, *args) def __init__(self, *args): _pybase.VectorOfSMatrices_swiginit(self, _pybase.new_VectorOfSMatrices(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void": return _pybase.VectorOfSMatrices_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &": return _pybase.VectorOfSMatrices_front(self) def back(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &": return _pybase.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 _pybase.VectorOfSMatrices_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfSMatrices_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfSMatrices_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SimpleMatrix > >::size_type") -> "void": return _pybase.VectorOfSMatrices_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type": return _pybase.VectorOfSMatrices_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfSMatrices # Register VectorOfSMatrices in _pybase: _pybase.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 _pybase.VectorOfMemories_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfMemories___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfMemories___bool__(self) def __len__(self) -> "std::vector< SiconosMemory >::size_type": return _pybase.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 _pybase.VectorOfMemories___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.VectorOfMemories___setslice__(self, *args) def __delslice__(self, i: "std::vector< SiconosMemory >::difference_type", j: "std::vector< SiconosMemory >::difference_type") -> "void": return _pybase.VectorOfMemories___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfMemories___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< SiconosMemory >::value_type const &": return _pybase.VectorOfMemories___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfMemories___setitem__(self, *args) def pop(self) -> "std::vector< SiconosMemory >::value_type": return _pybase.VectorOfMemories_pop(self) def append(self, x: "SiconosMemory") -> "void": return _pybase.VectorOfMemories_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfMemories_empty(self) def size(self) -> "std::vector< SiconosMemory >::size_type": return _pybase.VectorOfMemories_size(self) def swap(self, v: "VectorOfMemories") -> "void": return _pybase.VectorOfMemories_swap(self, v) def begin(self) -> "std::vector< SiconosMemory >::iterator": return _pybase.VectorOfMemories_begin(self) def end(self) -> "std::vector< SiconosMemory >::iterator": return _pybase.VectorOfMemories_end(self) def rbegin(self) -> "std::vector< SiconosMemory >::reverse_iterator": return _pybase.VectorOfMemories_rbegin(self) def rend(self) -> "std::vector< SiconosMemory >::reverse_iterator": return _pybase.VectorOfMemories_rend(self) def clear(self) -> "void": return _pybase.VectorOfMemories_clear(self) def get_allocator(self) -> "std::vector< SiconosMemory >::allocator_type": return _pybase.VectorOfMemories_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfMemories_pop_back(self) def erase(self, *args) -> "std::vector< SiconosMemory >::iterator": return _pybase.VectorOfMemories_erase(self, *args) def __init__(self, *args): _pybase.VectorOfMemories_swiginit(self, _pybase.new_VectorOfMemories(*args)) def push_back(self, x: "SiconosMemory") -> "void": return _pybase.VectorOfMemories_push_back(self, x) def front(self) -> "std::vector< SiconosMemory >::value_type const &": return _pybase.VectorOfMemories_front(self) def back(self) -> "std::vector< SiconosMemory >::value_type const &": return _pybase.VectorOfMemories_back(self) def assign(self, n: "std::vector< SiconosMemory >::size_type", x: "SiconosMemory") -> "void": return _pybase.VectorOfMemories_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfMemories_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfMemories_insert(self, *args) def reserve(self, n: "std::vector< SiconosMemory >::size_type") -> "void": return _pybase.VectorOfMemories_reserve(self, n) def capacity(self) -> "std::vector< SiconosMemory >::size_type": return _pybase.VectorOfMemories_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfMemories # Register VectorOfMemories in _pybase: _pybase.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 _pybase.UnsignedIntVector_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.UnsignedIntVector___nonzero__(self) def __bool__(self) -> "bool": return _pybase.UnsignedIntVector___bool__(self) def __len__(self) -> "std::vector< unsigned int >::size_type": return _pybase.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 _pybase.UnsignedIntVector___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.UnsignedIntVector___setslice__(self, *args) def __delslice__(self, i: "std::vector< unsigned int >::difference_type", j: "std::vector< unsigned int >::difference_type") -> "void": return _pybase.UnsignedIntVector___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.UnsignedIntVector___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< unsigned int >::value_type const &": return _pybase.UnsignedIntVector___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.UnsignedIntVector___setitem__(self, *args) def pop(self) -> "std::vector< unsigned int >::value_type": return _pybase.UnsignedIntVector_pop(self) def append(self, x: "std::vector< unsigned int >::value_type const &") -> "void": return _pybase.UnsignedIntVector_append(self, x) def empty(self) -> "bool": return _pybase.UnsignedIntVector_empty(self) def size(self) -> "std::vector< unsigned int >::size_type": return _pybase.UnsignedIntVector_size(self) def swap(self, v: "UnsignedIntVector") -> "void": return _pybase.UnsignedIntVector_swap(self, v) def begin(self) -> "std::vector< unsigned int >::iterator": return _pybase.UnsignedIntVector_begin(self) def end(self) -> "std::vector< unsigned int >::iterator": return _pybase.UnsignedIntVector_end(self) def rbegin(self) -> "std::vector< unsigned int >::reverse_iterator": return _pybase.UnsignedIntVector_rbegin(self) def rend(self) -> "std::vector< unsigned int >::reverse_iterator": return _pybase.UnsignedIntVector_rend(self) def clear(self) -> "void": return _pybase.UnsignedIntVector_clear(self) def get_allocator(self) -> "std::vector< unsigned int >::allocator_type": return _pybase.UnsignedIntVector_get_allocator(self) def pop_back(self) -> "void": return _pybase.UnsignedIntVector_pop_back(self) def erase(self, *args) -> "std::vector< unsigned int >::iterator": return _pybase.UnsignedIntVector_erase(self, *args) def __init__(self, *args): _pybase.UnsignedIntVector_swiginit(self, _pybase.new_UnsignedIntVector(*args)) def push_back(self, x: "std::vector< unsigned int >::value_type const &") -> "void": return _pybase.UnsignedIntVector_push_back(self, x) def front(self) -> "std::vector< unsigned int >::value_type const &": return _pybase.UnsignedIntVector_front(self) def back(self) -> "std::vector< unsigned int >::value_type const &": return _pybase.UnsignedIntVector_back(self) def assign(self, n: "std::vector< unsigned int >::size_type", x: "std::vector< unsigned int >::value_type const &") -> "void": return _pybase.UnsignedIntVector_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.UnsignedIntVector_resize(self, *args) def insert(self, *args) -> "void": return _pybase.UnsignedIntVector_insert(self, *args) def reserve(self, n: "std::vector< unsigned int >::size_type") -> "void": return _pybase.UnsignedIntVector_reserve(self, n) def capacity(self) -> "std::vector< unsigned int >::size_type": return _pybase.UnsignedIntVector_capacity(self) __swig_destroy__ = _pybase.delete_UnsignedIntVector # Register UnsignedIntVector in _pybase: _pybase.UnsignedIntVector_swigregister(UnsignedIntVector) import siconos.kernel class VectorOfSPSiconosContactor(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 _pybase.VectorOfSPSiconosContactor_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfSPSiconosContactor___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfSPSiconosContactor___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::size_type": return _pybase.VectorOfSPSiconosContactor___len__(self) def __getslice__(self, i: "std::vector< std::shared_ptr< SiconosContactor > >::difference_type", j: "std::vector< std::shared_ptr< SiconosContactor > >::difference_type") -> "std::vector< std::shared_ptr< SiconosContactor >,std::allocator< std::shared_ptr< SiconosContactor > > > *": return _pybase.VectorOfSPSiconosContactor___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.VectorOfSPSiconosContactor___setslice__(self, *args) def __delslice__(self, i: "std::vector< std::shared_ptr< SiconosContactor > >::difference_type", j: "std::vector< std::shared_ptr< SiconosContactor > >::difference_type") -> "void": return _pybase.VectorOfSPSiconosContactor___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfSPSiconosContactor___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosContactor > >::value_type const &": return _pybase.VectorOfSPSiconosContactor___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfSPSiconosContactor___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::value_type": return _pybase.VectorOfSPSiconosContactor_pop(self) def append(self, x: "std::vector< std::shared_ptr< SiconosContactor > >::value_type const &") -> "void": return _pybase.VectorOfSPSiconosContactor_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfSPSiconosContactor_empty(self) def size(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::size_type": return _pybase.VectorOfSPSiconosContactor_size(self) def begin(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::iterator": return _pybase.VectorOfSPSiconosContactor_begin(self) def end(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::iterator": return _pybase.VectorOfSPSiconosContactor_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::reverse_iterator": return _pybase.VectorOfSPSiconosContactor_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::reverse_iterator": return _pybase.VectorOfSPSiconosContactor_rend(self) def clear(self) -> "void": return _pybase.VectorOfSPSiconosContactor_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::allocator_type": return _pybase.VectorOfSPSiconosContactor_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfSPSiconosContactor_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosContactor > >::iterator": return _pybase.VectorOfSPSiconosContactor_erase(self, *args) def __init__(self, *args): _pybase.VectorOfSPSiconosContactor_swiginit(self, _pybase.new_VectorOfSPSiconosContactor(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SiconosContactor > >::value_type const &") -> "void": return _pybase.VectorOfSPSiconosContactor_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::value_type const &": return _pybase.VectorOfSPSiconosContactor_front(self) def back(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::value_type const &": return _pybase.VectorOfSPSiconosContactor_back(self) def assign(self, n: "std::vector< std::shared_ptr< SiconosContactor > >::size_type", x: "std::vector< std::shared_ptr< SiconosContactor > >::value_type const &") -> "void": return _pybase.VectorOfSPSiconosContactor_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfSPSiconosContactor_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfSPSiconosContactor_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SiconosContactor > >::size_type") -> "void": return _pybase.VectorOfSPSiconosContactor_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SiconosContactor > >::size_type": return _pybase.VectorOfSPSiconosContactor_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfSPSiconosContactor # Register VectorOfSPSiconosContactor in _pybase: _pybase.VectorOfSPSiconosContactor_swigregister(VectorOfSPSiconosContactor) class VectorOfSPSiconosCollisionQueryResult(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 _pybase.VectorOfSPSiconosCollisionQueryResult_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _pybase.VectorOfSPSiconosCollisionQueryResult___nonzero__(self) def __bool__(self) -> "bool": return _pybase.VectorOfSPSiconosCollisionQueryResult___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::size_type": return _pybase.VectorOfSPSiconosCollisionQueryResult___len__(self) def __getslice__(self, i: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::difference_type", j: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::difference_type") -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult >,std::allocator< std::shared_ptr< SiconosCollisionQueryResult > > > *": return _pybase.VectorOfSPSiconosCollisionQueryResult___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult___setslice__(self, *args) def __delslice__(self, i: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::difference_type", j: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::difference_type") -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type const &": return _pybase.VectorOfSPSiconosCollisionQueryResult___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult___setitem__(self, *args) def pop(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type": return _pybase.VectorOfSPSiconosCollisionQueryResult_pop(self) def append(self, x: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type const &") -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_append(self, x) def empty(self) -> "bool": return _pybase.VectorOfSPSiconosCollisionQueryResult_empty(self) def size(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::size_type": return _pybase.VectorOfSPSiconosCollisionQueryResult_size(self) def begin(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::iterator": return _pybase.VectorOfSPSiconosCollisionQueryResult_begin(self) def end(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::iterator": return _pybase.VectorOfSPSiconosCollisionQueryResult_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::reverse_iterator": return _pybase.VectorOfSPSiconosCollisionQueryResult_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::reverse_iterator": return _pybase.VectorOfSPSiconosCollisionQueryResult_rend(self) def clear(self) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_clear(self) def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::allocator_type": return _pybase.VectorOfSPSiconosCollisionQueryResult_get_allocator(self) def pop_back(self) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::iterator": return _pybase.VectorOfSPSiconosCollisionQueryResult_erase(self, *args) def __init__(self, *args): _pybase.VectorOfSPSiconosCollisionQueryResult_swiginit(self, _pybase.new_VectorOfSPSiconosCollisionQueryResult(*args)) def push_back(self, x: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type const &") -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type const &": return _pybase.VectorOfSPSiconosCollisionQueryResult_front(self) def back(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type const &": return _pybase.VectorOfSPSiconosCollisionQueryResult_back(self) def assign(self, n: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::size_type", x: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::value_type const &") -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_assign(self, n, x) def resize(self, *args) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_resize(self, *args) def insert(self, *args) -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_insert(self, *args) def reserve(self, n: "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::size_type") -> "void": return _pybase.VectorOfSPSiconosCollisionQueryResult_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< SiconosCollisionQueryResult > >::size_type": return _pybase.VectorOfSPSiconosCollisionQueryResult_capacity(self) __swig_destroy__ = _pybase.delete_VectorOfSPSiconosCollisionQueryResult # Register VectorOfSPSiconosCollisionQueryResult in _pybase: _pybase.VectorOfSPSiconosCollisionQueryResult_swigregister(VectorOfSPSiconosCollisionQueryResult) class SiconosShape(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _inside_margin = property(_pybase.SiconosShape__inside_margin_get, _pybase.SiconosShape__inside_margin_set) _outside_margin = property(_pybase.SiconosShape__outside_margin_get, _pybase.SiconosShape__outside_margin_set) _version = property(_pybase.SiconosShape__version_get, _pybase.SiconosShape__version_set) def __init__(self): if self.__class__ == SiconosShape: _self = None else: _self = self _pybase.SiconosShape_swiginit(self, _pybase.new_SiconosShape(_self, )) __swig_destroy__ = _pybase.delete_SiconosShape def setInsideMargin(self, margin: "double") -> "void": r""" Set the inside margin of the shape. This is a distance that the contour should be shrunk to improve contact detection robustness. It will have an effect on the roundness of corners. """ return _pybase.SiconosShape_setInsideMargin(self, margin) def setOutsideMargin(self, margin: "double") -> "void": r""" Set the outside margin of the shape. This is the distance from the contact shell to an external shell used to detect contacts in advance. The implementation will detect contact points on the external shell and project them back to the contact shell. Note: Currently not working in Bullet implementation! Better to leave at zero. """ return _pybase.SiconosShape_setOutsideMargin(self, margin) def insideMargin(self) -> "double": return _pybase.SiconosShape_insideMargin(self) def outsideMargin(self) -> "double": return _pybase.SiconosShape_outsideMargin(self) def version(self) -> "unsigned int": return _pybase.SiconosShape_version(self) def __disown__(self): self.this.disown() _pybase.disown_SiconosShape(self) return weakref.proxy(self) # Register SiconosShape in _pybase: _pybase.SiconosShape_swigregister(SiconosShape) class SiconosPlane(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self): if self.__class__ == SiconosPlane: _self = None else: _self = self _pybase.SiconosPlane_swiginit(self, _pybase.new_SiconosPlane(_self, )) __swig_destroy__ = _pybase.delete_SiconosPlane def __disown__(self): self.this.disown() _pybase.disown_SiconosPlane(self) return weakref.proxy(self) # Register SiconosPlane in _pybase: _pybase.SiconosPlane_swigregister(SiconosPlane) class SiconosSphere(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _radius = property(_pybase.SiconosSphere__radius_get, _pybase.SiconosSphere__radius_set) def __init__(self, radius: "float"): if self.__class__ == SiconosSphere: _self = None else: _self = self _pybase.SiconosSphere_swiginit(self, _pybase.new_SiconosSphere(_self, radius)) __swig_destroy__ = _pybase.delete_SiconosSphere def radius(self) -> "float": return _pybase.SiconosSphere_radius(self) def setRadius(self, r: "float") -> "void": return _pybase.SiconosSphere_setRadius(self, r) def __disown__(self): self.this.disown() _pybase.disown_SiconosSphere(self) return weakref.proxy(self) # Register SiconosSphere in _pybase: _pybase.SiconosSphere_swigregister(SiconosSphere) class SiconosBox(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _dimensions = property(_pybase.SiconosBox__dimensions_get, _pybase.SiconosBox__dimensions_set) def __init__(self, *args): if self.__class__ == SiconosBox: _self = None else: _self = self _pybase.SiconosBox_swiginit(self, _pybase.new_SiconosBox(_self, *args)) __swig_destroy__ = _pybase.delete_SiconosBox def dimensions(self) -> "SP::SiconosVector": return _pybase.SiconosBox_dimensions(self) def setDimensions(self, *args) -> "void": return _pybase.SiconosBox_setDimensions(self, *args) def __disown__(self): self.this.disown() _pybase.disown_SiconosBox(self) return weakref.proxy(self) # Register SiconosBox in _pybase: _pybase.SiconosBox_swigregister(SiconosBox) class SiconosCylinder(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _radius = property(_pybase.SiconosCylinder__radius_get, _pybase.SiconosCylinder__radius_set) _length = property(_pybase.SiconosCylinder__length_get, _pybase.SiconosCylinder__length_set) def __init__(self, radius: "float", length: "float"): if self.__class__ == SiconosCylinder: _self = None else: _self = self _pybase.SiconosCylinder_swiginit(self, _pybase.new_SiconosCylinder(_self, radius, length)) __swig_destroy__ = _pybase.delete_SiconosCylinder def setRadius(self, radius: "double") -> "void": return _pybase.SiconosCylinder_setRadius(self, radius) def radius(self) -> "double": return _pybase.SiconosCylinder_radius(self) def setLength(self, length: "double") -> "void": return _pybase.SiconosCylinder_setLength(self, length) def length(self) -> "double": return _pybase.SiconosCylinder_length(self) def __disown__(self): self.this.disown() _pybase.disown_SiconosCylinder(self) return weakref.proxy(self) # Register SiconosCylinder in _pybase: _pybase.SiconosCylinder_swigregister(SiconosCylinder) class SiconosCone(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _radius = property(_pybase.SiconosCone__radius_get, _pybase.SiconosCone__radius_set) _length = property(_pybase.SiconosCone__length_get, _pybase.SiconosCone__length_set) def __init__(self, radius: "float", length: "float"): if self.__class__ == SiconosCone: _self = None else: _self = self _pybase.SiconosCone_swiginit(self, _pybase.new_SiconosCone(_self, radius, length)) __swig_destroy__ = _pybase.delete_SiconosCone def setRadius(self, radius: "double") -> "void": return _pybase.SiconosCone_setRadius(self, radius) def radius(self) -> "double": return _pybase.SiconosCone_radius(self) def setLength(self, length: "double") -> "void": return _pybase.SiconosCone_setLength(self, length) def length(self) -> "double": return _pybase.SiconosCone_length(self) def __disown__(self): self.this.disown() _pybase.disown_SiconosCone(self) return weakref.proxy(self) # Register SiconosCone in _pybase: _pybase.SiconosCone_swigregister(SiconosCone) class SiconosCapsule(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _radius = property(_pybase.SiconosCapsule__radius_get, _pybase.SiconosCapsule__radius_set) _length = property(_pybase.SiconosCapsule__length_get, _pybase.SiconosCapsule__length_set) def __init__(self, radius: "float", length: "float"): if self.__class__ == SiconosCapsule: _self = None else: _self = self _pybase.SiconosCapsule_swiginit(self, _pybase.new_SiconosCapsule(_self, radius, length)) __swig_destroy__ = _pybase.delete_SiconosCapsule def setRadius(self, radius: "double") -> "void": return _pybase.SiconosCapsule_setRadius(self, radius) def radius(self) -> "double": return _pybase.SiconosCapsule_radius(self) def setLength(self, length: "double") -> "void": return _pybase.SiconosCapsule_setLength(self, length) def length(self) -> "double": return _pybase.SiconosCapsule_length(self) def __disown__(self): self.this.disown() _pybase.disown_SiconosCapsule(self) return weakref.proxy(self) # Register SiconosCapsule in _pybase: _pybase.SiconosCapsule_swigregister(SiconosCapsule) class SiconosConvexHull(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _vertices = property(_pybase.SiconosConvexHull__vertices_get, _pybase.SiconosConvexHull__vertices_set) def __init__(self, vertices: "SP::SiconosMatrix"): if self.__class__ == SiconosConvexHull: _self = None else: _self = self _pybase.SiconosConvexHull_swiginit(self, _pybase.new_SiconosConvexHull(_self, vertices)) __swig_destroy__ = _pybase.delete_SiconosConvexHull def vertices(self) -> "SP::SiconosMatrix": return _pybase.SiconosConvexHull_vertices(self) def setVertices(self, vertices: "SP::SiconosMatrix") -> "void": return _pybase.SiconosConvexHull_setVertices(self, vertices) def __disown__(self): self.this.disown() _pybase.disown_SiconosConvexHull(self) return weakref.proxy(self) # Register SiconosConvexHull in _pybase: _pybase.SiconosConvexHull_swigregister(SiconosConvexHull) class SiconosMesh(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _indexes = property(_pybase.SiconosMesh__indexes_get, _pybase.SiconosMesh__indexes_set) _vertices = property(_pybase.SiconosMesh__vertices_get, _pybase.SiconosMesh__vertices_set) def __init__(self, indexes: "unsignedintv", vertices: "SP::SiconosMatrix"): if self.__class__ == SiconosMesh: _self = None else: _self = self _pybase.SiconosMesh_swiginit(self, _pybase.new_SiconosMesh(_self, indexes, vertices)) def indexes(self) -> "SP::VUInt": return _pybase.SiconosMesh_indexes(self) def vertices(self) -> "SP::SiconosMatrix": return _pybase.SiconosMesh_vertices(self) __swig_destroy__ = _pybase.delete_SiconosMesh def __disown__(self): self.this.disown() _pybase.disown_SiconosMesh(self) return weakref.proxy(self) # Register SiconosMesh in _pybase: _pybase.SiconosMesh_swigregister(SiconosMesh) class SiconosHeightMap(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _height_data = property(_pybase.SiconosHeightMap__height_data_get, _pybase.SiconosHeightMap__height_data_set) _length_x = property(_pybase.SiconosHeightMap__length_x_get, _pybase.SiconosHeightMap__length_x_set) _length_y = property(_pybase.SiconosHeightMap__length_y_get, _pybase.SiconosHeightMap__length_y_set) def __init__(self, height_data: "SP::SiconosMatrix", length_x: "double", length_y: "double"): if self.__class__ == SiconosHeightMap: _self = None else: _self = self _pybase.SiconosHeightMap_swiginit(self, _pybase.new_SiconosHeightMap(_self, height_data, length_x, length_y)) def height_data(self) -> "SP::SiconosMatrix": return _pybase.SiconosHeightMap_height_data(self) def length_x(self) -> "double": return _pybase.SiconosHeightMap_length_x(self) def length_y(self) -> "double": return _pybase.SiconosHeightMap_length_y(self) __swig_destroy__ = _pybase.delete_SiconosHeightMap def __disown__(self): self.this.disown() _pybase.disown_SiconosHeightMap(self) return weakref.proxy(self) # Register SiconosHeightMap in _pybase: _pybase.SiconosHeightMap_swigregister(SiconosHeightMap) class SiconosDisk(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _radius = property(_pybase.SiconosDisk__radius_get, _pybase.SiconosDisk__radius_set) def __init__(self, radius: "float"): if self.__class__ == SiconosDisk: _self = None else: _self = self _pybase.SiconosDisk_swiginit(self, _pybase.new_SiconosDisk(_self, radius)) __swig_destroy__ = _pybase.delete_SiconosDisk def radius(self) -> "float": return _pybase.SiconosDisk_radius(self) def setRadius(self, r: "float") -> "void": return _pybase.SiconosDisk_setRadius(self, r) def __disown__(self): self.this.disown() _pybase.disown_SiconosDisk(self) return weakref.proxy(self) # Register SiconosDisk in _pybase: _pybase.SiconosDisk_swigregister(SiconosDisk) class SiconosBox2d(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _dimensions = property(_pybase.SiconosBox2d__dimensions_get, _pybase.SiconosBox2d__dimensions_set) def __init__(self, *args): if self.__class__ == SiconosBox2d: _self = None else: _self = self _pybase.SiconosBox2d_swiginit(self, _pybase.new_SiconosBox2d(_self, *args)) __swig_destroy__ = _pybase.delete_SiconosBox2d def dimensions(self) -> "SP::SiconosVector": return _pybase.SiconosBox2d_dimensions(self) def setDimensions(self, *args) -> "void": return _pybase.SiconosBox2d_setDimensions(self, *args) def __disown__(self): self.this.disown() _pybase.disown_SiconosBox2d(self) return weakref.proxy(self) # Register SiconosBox2d in _pybase: _pybase.SiconosBox2d_swigregister(SiconosBox2d) class SiconosConvexHull2d(SiconosShape, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _vertices = property(_pybase.SiconosConvexHull2d__vertices_get, _pybase.SiconosConvexHull2d__vertices_set) _avoidInternalEdgeContact = property(_pybase.SiconosConvexHull2d__avoidInternalEdgeContact_get, _pybase.SiconosConvexHull2d__avoidInternalEdgeContact_set) _normal_edge_pointA = property(_pybase.SiconosConvexHull2d__normal_edge_pointA_get, _pybase.SiconosConvexHull2d__normal_edge_pointA_set) _normal_edge_pointB = property(_pybase.SiconosConvexHull2d__normal_edge_pointB_get, _pybase.SiconosConvexHull2d__normal_edge_pointB_set) def __init__(self, vertices: "SP::SiconosMatrix"): if self.__class__ == SiconosConvexHull2d: _self = None else: _self = self _pybase.SiconosConvexHull2d_swiginit(self, _pybase.new_SiconosConvexHull2d(_self, vertices)) __swig_destroy__ = _pybase.delete_SiconosConvexHull2d def vertices(self) -> "SP::SiconosMatrix": return _pybase.SiconosConvexHull2d_vertices(self) def setVertices(self, vertices: "SP::SiconosMatrix") -> "void": return _pybase.SiconosConvexHull2d_setVertices(self, vertices) def avoidInternalEdgeContact(self) -> "bool": return _pybase.SiconosConvexHull2d_avoidInternalEdgeContact(self) def setAvoidInternalEdgeContact(self, value: "bool") -> "void": return _pybase.SiconosConvexHull2d_setAvoidInternalEdgeContact(self, value) def __disown__(self): self.this.disown() _pybase.disown_SiconosConvexHull2d(self) return weakref.proxy(self) # Register SiconosConvexHull2d in _pybase: _pybase.SiconosConvexHull2d_swigregister(SiconosConvexHull2d)
[docs]class SiconosContactor(object): r""" Class to hold the shape assigned to a body, and to associate each shape with an offset and collision group. """ 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): _pybase.SiconosContactor_swiginit(self, _pybase.new_SiconosContactor(*args)) shape = property(_pybase.SiconosContactor_shape_get, _pybase.SiconosContactor_shape_set) offset = property(_pybase.SiconosContactor_offset_get, _pybase.SiconosContactor_offset_set) collision_group = property(_pybase.SiconosContactor_collision_group_get, _pybase.SiconosContactor_collision_group_set) __swig_destroy__ = _pybase.delete_SiconosContactor
# Register SiconosContactor in _pybase: _pybase.SiconosContactor_swigregister(SiconosContactor) class SiconosContactorSet(VectorOfSPSiconosContactor): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def append(self, *args) -> "void": return _pybase.SiconosContactorSet_append(self, *args) def __init__(self): _pybase.SiconosContactorSet_swiginit(self, _pybase.new_SiconosContactorSet()) __swig_destroy__ = _pybase.delete_SiconosContactorSet # Register SiconosContactorSet in _pybase: _pybase.SiconosContactorSet_swigregister(SiconosContactorSet)
[docs]class ContactR(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): if self.__class__ == ContactR: _self = None else: _self = self _pybase.ContactR_swiginit(self, _pybase.new_ContactR(_self, )) bodyShapeRecordA = property(_pybase.ContactR_bodyShapeRecordA_get, _pybase.ContactR_bodyShapeRecordA_set) bodyShapeRecordB = property(_pybase.ContactR_bodyShapeRecordB_get, _pybase.ContactR_bodyShapeRecordB_set)
[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 _pybase.ContactR_computeh(self, time, q0, y)
[docs] def updateContactPoints(self, pos1: "SiconosVector", pos2: "SiconosVector", normal: "SiconosVector") -> "void": r""" Update this contact point information. :type pos1: :py:class:`SiconosVector` :param pos1: Position on ds1 in ds1 frame. :type pos2: :py:class:`SiconosVector` :param pos2: Position on ds2 in ds2 frame (or world frame if ds2=null). :type normal: :py:class:`SiconosVector` :param normal: Normal in ds2 frame (or world frame if ds2=null). """ return _pybase.ContactR_updateContactPoints(self, pos1, pos2, normal)
def preDelete(self) -> "void": return _pybase.ContactR_preDelete(self)
[docs] def display(self) -> "void": return _pybase.ContactR_display(self)
__swig_destroy__ = _pybase.delete_ContactR def __disown__(self): self.this.disown() _pybase.disown_ContactR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" To initialize all the plugin functions with nullptr.""" return _pybase.ContactR__zeroPlugin(self)
# Register ContactR in _pybase: _pybase.ContactR_swigregister(ContactR)
[docs]class RigidBodyDS(siconos.kernel.NewtonEulerDS, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _contactors = property(_pybase.RigidBodyDS__contactors_get, _pybase.RigidBodyDS__contactors_set) _useContactorInertia = property(_pybase.RigidBodyDS__useContactorInertia_get, _pybase.RigidBodyDS__useContactorInertia_set) _allowSelfCollide = property(_pybase.RigidBodyDS__allowSelfCollide_get, _pybase.RigidBodyDS__allowSelfCollide_set, doc=r""" If false, bodies connected to this body by a joint will not collide. See also NewtonEulerJointR::_allowSelfCollide """) def __init__(self, *args): if self.__class__ == RigidBodyDS: _self = None else: _self = self _pybase.RigidBodyDS_swiginit(self, _pybase.new_RigidBodyDS(_self, *args)) __swig_destroy__ = _pybase.delete_RigidBodyDS def setUseContactorInertia(self, use: "bool") -> "void": return _pybase.RigidBodyDS_setUseContactorInertia(self, use) def useContactorInertia(self) -> "bool": return _pybase.RigidBodyDS_useContactorInertia(self)
[docs] def allowSelfCollide(self) -> "bool": r""" Return the value of the _allowSelfCollide flag.""" return _pybase.RigidBodyDS_allowSelfCollide(self)
[docs] def setAllowSelfCollide(self, x: "bool") -> "void": r""" Set the value of the _allowSelfCollide flag.""" return _pybase.RigidBodyDS_setAllowSelfCollide(self, x)
[docs] def contactors(self) -> "SP::SiconosContactorSet": r""" Access the contactor set associated with this body. :rtype: :py:class:`SiconosContactorSet` :return: A SP::SiconosContactorSet """ return _pybase.RigidBodyDS_contactors(self)
[docs] def setContactors(self, c: "SP::SiconosContactorSet") -> "void": r""" Provide a set of contactors to the body. :type c: :py:class:`SiconosContactorSet` :param c: A SP::SiconosContactorSet """ return _pybase.RigidBodyDS_setContactors(self, c)
[docs] def base_position(self) -> "SP::SiconosVector": r""" Make the base position of the contactors equal to the DS q vector. :rtype: :py:class:`SiconosVector` :return: a SP::SiconosVector """ return _pybase.RigidBodyDS_base_position(self)
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void": return _pybase.RigidBodyDS_acceptSPBase(self, tourist) def acceptBase(self, tourist: "SiconosVisitor &") -> "void": return _pybase.RigidBodyDS_acceptBase(self, tourist) def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void": return _pybase.RigidBodyDS_acceptSerializerBase(self, serializer) def __disown__(self): self.this.disown() _pybase.disown_RigidBodyDS(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _pybase.RigidBodyDS__zeroPlugin(self)
# Register RigidBodyDS in _pybase: _pybase.RigidBodyDS_swigregister(RigidBodyDS) class Contact2dR(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self): if self.__class__ == Contact2dR: _self = None else: _self = self _pybase.Contact2dR_swiginit(self, _pybase.new_Contact2dR(_self, )) __swig_destroy__ = _pybase.delete_Contact2dR bodyShapeRecordA = property(_pybase.Contact2dR_bodyShapeRecordA_get, _pybase.Contact2dR_bodyShapeRecordA_set) bodyShapeRecordB = property(_pybase.Contact2dR_bodyShapeRecordB_get, _pybase.Contact2dR_bodyShapeRecordB_set) def updateContactPointsInAbsoluteFrame(self, pos1: "SiconosVector", pos2: "SiconosVector", normal: "SiconosVector") -> "void": r""" Update this contact point information. :type pos1: :py:class:`SiconosVector` :param pos1: Position on ds1 in ds1 frame. :type pos2: :py:class:`SiconosVector` :param pos2: Position on ds2 in ds2 frame (or world frame if ds2=null). :type normal: :py:class:`SiconosVector` :param normal: Normal in ds2 frame (or world frame if ds2=null). """ return _pybase.Contact2dR_updateContactPointsInAbsoluteFrame(self, pos1, pos2, normal) def preDelete(self) -> "void": return _pybase.Contact2dR_preDelete(self) def __disown__(self): self.this.disown() _pybase.disown_Contact2dR(self) return weakref.proxy(self) # Register Contact2dR in _pybase: _pybase.Contact2dR_swigregister(Contact2dR) class Contact2d3DR(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self): if self.__class__ == Contact2d3DR: _self = None else: _self = self _pybase.Contact2d3DR_swiginit(self, _pybase.new_Contact2d3DR(_self, )) __swig_destroy__ = _pybase.delete_Contact2d3DR bodyShapeRecordA = property(_pybase.Contact2d3DR_bodyShapeRecordA_get, _pybase.Contact2d3DR_bodyShapeRecordA_set) bodyShapeRecordB = property(_pybase.Contact2d3DR_bodyShapeRecordB_get, _pybase.Contact2d3DR_bodyShapeRecordB_set) def updateContactPointsInAbsoluteFrame(self, pos1: "SiconosVector", pos2: "SiconosVector", normal: "SiconosVector") -> "void": r""" Update this contact point information. :type pos1: :py:class:`SiconosVector` :param pos1: Position on ds1 in ds1 frame. :type pos2: :py:class:`SiconosVector` :param pos2: Position on ds2 in ds2 frame (or world frame if ds2=null). :type normal: :py:class:`SiconosVector` :param normal: Normal in ds2 frame (or world frame if ds2=null). """ return _pybase.Contact2d3DR_updateContactPointsInAbsoluteFrame(self, pos1, pos2, normal) def preDelete(self) -> "void": return _pybase.Contact2d3DR_preDelete(self) def __disown__(self): self.this.disown() _pybase.disown_Contact2d3DR(self) return weakref.proxy(self) # Register Contact2d3DR in _pybase: _pybase.Contact2d3DR_swigregister(Contact2d3DR)
[docs]class Contact5DR(siconos.kernel.NewtonEuler5DR): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self): if self.__class__ == Contact5DR: _self = None else: _self = self _pybase.Contact5DR_swiginit(self, _pybase.new_Contact5DR(_self, )) bodyShapeRecordA = property(_pybase.Contact5DR_bodyShapeRecordA_get, _pybase.Contact5DR_bodyShapeRecordA_set) bodyShapeRecordB = property(_pybase.Contact5DR_bodyShapeRecordB_get, _pybase.Contact5DR_bodyShapeRecordB_set)
[docs] def computeh(self, time: "double", q0: "BlockVector", y: "SiconosVector") -> "void": r""" to compute the output y = h(t,q) 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 _pybase.Contact5DR_computeh(self, time, q0, y)
[docs] def updateContactPoints(self, pos1: "SiconosVector", pos2: "SiconosVector", normal: "SiconosVector") -> "void": r""" Update this contact point information. :type pos1: :py:class:`SiconosVector` :param pos1: Position on ds1 in ds1 frame. :type pos2: :py:class:`SiconosVector` :param pos2: Position on ds2 in ds2 frame (or world frame if ds2=null). :type normal: :py:class:`SiconosVector` :param normal: Normal in ds2 frame (or world frame if ds2=null). """ return _pybase.Contact5DR_updateContactPoints(self, pos1, pos2, normal)
def preDelete(self) -> "void": return _pybase.Contact5DR_preDelete(self) __swig_destroy__ = _pybase.delete_Contact5DR def __disown__(self): self.this.disown() _pybase.disown_Contact5DR(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" To initialize all the plugin functions with nullptr.""" return _pybase.Contact5DR__zeroPlugin(self)
# Register Contact5DR in _pybase: _pybase.Contact5DR_swigregister(Contact5DR)
[docs]class RigidBody2dDS(siconos.kernel.LagrangianLinearTIDS, ): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr _scalarMass = property(_pybase.RigidBody2dDS__scalarMass_get, _pybase.RigidBody2dDS__scalarMass_set, doc=r""" a scalar mass in the case of RigidBody2dDS""") _contactors = property(_pybase.RigidBody2dDS__contactors_get, _pybase.RigidBody2dDS__contactors_set) _useContactorInertia = property(_pybase.RigidBody2dDS__useContactorInertia_get, _pybase.RigidBody2dDS__useContactorInertia_set) _allowSelfCollide = property(_pybase.RigidBody2dDS__allowSelfCollide_get, _pybase.RigidBody2dDS__allowSelfCollide_set, doc=r""" If false, bodies connected to this body by a joint will not collide. See also NewtonEulerJointR::_allowSelfCollide """) def __init__(self, *args): if self.__class__ == RigidBody2dDS: _self = None else: _self = self _pybase.RigidBody2dDS_swiginit(self, _pybase.new_RigidBody2dDS(_self, *args)) __swig_destroy__ = _pybase.delete_RigidBody2dDS def scalarMass(self) -> "double": return _pybase.RigidBody2dDS_scalarMass(self) def setUseContactorInertia(self, use: "bool") -> "void": return _pybase.RigidBody2dDS_setUseContactorInertia(self, use) def useContactorInertia(self) -> "bool": return _pybase.RigidBody2dDS_useContactorInertia(self)
[docs] def allowSelfCollide(self) -> "bool": r""" Return the value of the _allowSelfCollide flag.""" return _pybase.RigidBody2dDS_allowSelfCollide(self)
[docs] def setAllowSelfCollide(self, x: "bool") -> "void": r""" Set the value of the _allowSelfCollide flag.""" return _pybase.RigidBody2dDS_setAllowSelfCollide(self, x)
[docs] def contactors(self) -> "SP::SiconosContactorSet": r""" :rtype: :py:class:`SiconosContactorSet` :return: the contactor set associated with this body """ return _pybase.RigidBody2dDS_contactors(self)
[docs] def setContactors(self, c: "SP::SiconosContactorSet") -> "void": r""" Provide a set of contactors to the body. :type c: :py:class:`SiconosContactorSet` :param c: A SP::SiconosContactorSet """ return _pybase.RigidBody2dDS_setContactors(self, c)
[docs] def base_position(self) -> "SP::SiconosVector": r""" Make the base position of the contactors equal to the DS q vector. :rtype: :py:class:`SiconosVector` :return: a SP::SiconosVector """ return _pybase.RigidBody2dDS_base_position(self)
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void": return _pybase.RigidBody2dDS_acceptSPBase(self, tourist) def acceptBase(self, tourist: "SiconosVisitor &") -> "void": return _pybase.RigidBody2dDS_acceptBase(self, tourist) def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void": return _pybase.RigidBody2dDS_acceptSerializerBase(self, serializer) def __disown__(self): self.this.disown() _pybase.disown_RigidBody2dDS(self) return weakref.proxy(self) def _zeroPlugin(self) -> "void": r""" build all _plugin... PluggedObject""" return _pybase.RigidBody2dDS__zeroPlugin(self)
# Register RigidBody2dDS in _pybase: _pybase.RigidBody2dDS_swigregister(RigidBody2dDS)
[docs]class SiconosCollisionQueryResult(object): r""" Holds one result of a line segment intersection query against the graph of body contactors maintained by a SiconosCollisionManager """ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr distance = property(_pybase.SiconosCollisionQueryResult_distance_get, _pybase.SiconosCollisionQueryResult_distance_set, doc=r""" Distance from reference point (start of line segment or query center)""") body = property(_pybase.SiconosCollisionQueryResult_body_get, _pybase.SiconosCollisionQueryResult_body_set, doc=r""" Body owning the contactor that was intersected, may be null for static contactors. """) shape = property(_pybase.SiconosCollisionQueryResult_shape_get, _pybase.SiconosCollisionQueryResult_shape_set, doc=r""" The shape that was intersected.""") contactor = property(_pybase.SiconosCollisionQueryResult_contactor_get, _pybase.SiconosCollisionQueryResult_contactor_set, doc=r""" The contactor that was intersected.""") point = property(_pybase.SiconosCollisionQueryResult_point_get, _pybase.SiconosCollisionQueryResult_point_set, doc=r""" Closest point on contactor in world coordinates.""") def __init__(self): _pybase.SiconosCollisionQueryResult_swiginit(self, _pybase.new_SiconosCollisionQueryResult()) __swig_destroy__ = _pybase.delete_SiconosCollisionQueryResult
# Register SiconosCollisionQueryResult in _pybase: _pybase.SiconosCollisionQueryResult_swigregister(SiconosCollisionQueryResult) class SiconosCollisionManager(siconos.kernel.InteractionManager): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self): if self.__class__ == SiconosCollisionManager: _self = None else: _self = self _pybase.SiconosCollisionManager_swiginit(self, _pybase.new_SiconosCollisionManager(_self, )) __swig_destroy__ = _pybase.delete_SiconosCollisionManager def removeBody(self, body: "SP::SecondOrderDS const &") -> "void": r""" Remove a body from the collision detector. This must be done after removing a body from the NonSmoothDynamicalSystem otherwise contact will occur with a non-graph body which results in failure. """ return _pybase.SiconosCollisionManager_removeBody(self, body) def addStaticBody(self, *args) -> "SP::StaticBody": r""" Add a static body in the collision detector.""" return _pybase.SiconosCollisionManager_addStaticBody(self, *args) def removeStaticBody(self, body: "SP::StaticBody const &") -> "void": r""" Remove a body from the collision detector.""" return _pybase.SiconosCollisionManager_removeStaticBody(self, body) def lineIntersectionQuery(self, start: "SiconosVector", end: "SiconosVector", closestOnly: "bool"=False, sorted: "bool"=True) -> "std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > >": r""" Perform an intersection test on all shapes in the contactors and return a vector of all results, ordered by distance from start. :type start: :py:class:`SiconosVector` :param start: The starting point of the line segment in inertial frame (world) coordinates. :type end: :py:class:`SiconosVector` :param end: The ending point of the line segment in inertial frame (world) coordinates. :type closestOnly: boolean, optional :param closestOnly: If true, indicates only interested in first result closest to half-space boundary, max size of returned vector = 1. :type sorted: boolean, optional :param sorted: If true, results are sorted by distance. :rtype: std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > > :return: A vector of SiconosCollisionQueryResult that contain information about the query results. """ return _pybase.SiconosCollisionManager_lineIntersectionQuery(self, start, end, closestOnly, sorted) def inSphereQuery(self, center: "SiconosVector", radius: "double", closestOnly: "bool"=False, sorted: "bool"=True) -> "std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > >": r""" Find all shapes that are within a sphere defined by a point and a radius and return them in an ordered list based on distance to the center :type center: :py:class:`SiconosVector` :param center: The center of the sphere in inertial frame (world) coordinates. :type radius: float :param radius: The radius of the sphere. :type closestOnly: boolean, optional :param closestOnly: If true, indicates only interested in first result closest to half-space boundary, max size of returned vector = 1. :type sorted: boolean, optional :param sorted: If true, results are sorted by distance. :rtype: std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > > :return: A vector of SiconosCollisionQueryResult that contain information about the query results. """ return _pybase.SiconosCollisionManager_inSphereQuery(self, center, radius, closestOnly, sorted) def inBoxQuery(self, center: "SiconosVector", dimensions: "SiconosVector", closestOnly: "bool"=False, sorted: "bool"=True) -> "std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > >": r""" Find all shapes that are within a box defined by a center point and a dimensions (3-vector), and return them in an ordered list based on distance to the center. :type center: :py:class:`SiconosVector` :param center: The center of the box in inertial frame (world) coordinates. :type dimensions: :py:class:`SiconosVector` :param dimensions: The dimensions of the box (3-vector). :type closestOnly: boolean, optional :param closestOnly: If true, indicates only interested in first result closest to half-space boundary, max size of returned vector = 1. :type sorted: boolean, optional :param sorted: If true, results are sorted by distance. :rtype: std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > > :return: A vector of SiconosCollisionQueryResult that contain information about the query results. """ return _pybase.SiconosCollisionManager_inBoxQuery(self, center, dimensions, closestOnly, sorted) def inHalfSpaceQuery(self, point: "SiconosVector", normal: "SiconosVector", closestOnly: "bool"=False, sorted: "bool"=True) -> "std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > >": r""" Find all shapes that are inside a half-space, defined by a point and a normal direction. :type point: :py:class:`SiconosVector` :param point: The point defining the boundary of the half-space. :type normal: :py:class:`SiconosVector` :param normal: The normal pointing away from the surface of the half-space. :type closestOnly: boolean, optional :param closestOnly: If true, indicates only interested in first result closest to half-space boundary, max size of returned vector = 1. :type sorted: boolean, optional :param sorted: If true, results are sorted by distance. :rtype: std::vector< SP::SiconosCollisionQueryResult,std::allocator< SP::SiconosCollisionQueryResult > > :return: A vector of SiconosCollisionQueryResult that contain information about the query results. """ return _pybase.SiconosCollisionManager_inHalfSpaceQuery(self, point, normal, closestOnly, sorted) def __disown__(self): self.this.disown() _pybase.disown_SiconosCollisionManager(self) return weakref.proxy(self) # Register SiconosCollisionManager in _pybase: _pybase.SiconosCollisionManager_swigregister(SiconosCollisionManager) class StaticBody(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self): if self.__class__ == StaticBody: _self = None else: _self = self _pybase.StaticBody_swiginit(self, _pybase.new_StaticBody(_self, )) contactorSet = property(_pybase.StaticBody_contactorSet_get, _pybase.StaticBody_contactorSet_set) base = property(_pybase.StaticBody_base_get, _pybase.StaticBody_base_set) number = property(_pybase.StaticBody_number_get, _pybase.StaticBody_number_set) __swig_destroy__ = _pybase.delete_StaticBody def __disown__(self): self.this.disown() _pybase.disown_StaticBody(self) return weakref.proxy(self) # Register StaticBody in _pybase: _pybase.StaticBody_swigregister(StaticBody) class BodyShapeRecord(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, b: "SP::SiconosVector", d: "SP::SecondOrderDS", sh: "SP::SiconosShape", con: "SP::SiconosContactor", staticCSR: "SP::StaticBody"): if self.__class__ == BodyShapeRecord: _self = None else: _self = self _pybase.BodyShapeRecord_swiginit(self, _pybase.new_BodyShapeRecord(_self, b, d, sh, con, staticCSR)) __swig_destroy__ = _pybase.delete_BodyShapeRecord base = property(_pybase.BodyShapeRecord_base_get, _pybase.BodyShapeRecord_base_set) ds = property(_pybase.BodyShapeRecord_ds_get, _pybase.BodyShapeRecord_ds_set) sshape = property(_pybase.BodyShapeRecord_sshape_get, _pybase.BodyShapeRecord_sshape_set) contactor = property(_pybase.BodyShapeRecord_contactor_get, _pybase.BodyShapeRecord_contactor_set) shape_version = property(_pybase.BodyShapeRecord_shape_version_get, _pybase.BodyShapeRecord_shape_version_set) staticBody = property(_pybase.BodyShapeRecord_staticBody_get, _pybase.BodyShapeRecord_staticBody_set) def display(self) -> "void": return _pybase.BodyShapeRecord_display(self) def __disown__(self): self.this.disown() _pybase.disown_BodyShapeRecord(self) return weakref.proxy(self) # Register BodyShapeRecord in _pybase: _pybase.BodyShapeRecord_swigregister(BodyShapeRecord) def cast_ContactR(rel: "SP::Relation") -> "SP::ContactR": return _pybase.cast_ContactR(rel) def cast_Contact2dR(rel: "SP::Relation") -> "SP::Contact2dR": return _pybase.cast_Contact2dR(rel) def cast_Contact2d3DR(rel: "SP::Relation") -> "SP::Contact2d3DR": return _pybase.cast_Contact2d3DR(rel) def cast_Contact5DR(rel: "SP::Relation") -> "SP::Contact5DR": return _pybase.cast_Contact5DR(rel)