import six
from ipywidgets import Widget, DOMWidget, widget_serialization, Color, register
from traitlets import (
    Unicode, Int, CInt, Instance, ForwardDeclaredInstance, This, Enum,
    Tuple, List, Dict, Float, CFloat, Bool, Union, Any,
    )

from .._base.Three import ThreeWidget
from ..enums import *
from ..traits import *

from ..core.BaseBufferGeometry_autogen import BaseBufferGeometry


@register
class LatheBufferGeometry(BaseBufferGeometry):
    """LatheBufferGeometry

    Autogenerated by generate-wrappers.js
    Date: Tue Dec 19 2017 10:52:06 GMT+0100 (W. Europe Standard Time)
    See https://threejs.org/docs/#api/geometries/LatheGeometry
    """

    def __init__(self, points=[], segments=12, phiStart=0, phiLength=6.283185307179586, **kwargs):
        kwargs['points'] = points
        kwargs['segments'] = segments
        kwargs['phiStart'] = phiStart
        kwargs['phiLength'] = phiLength
        super(LatheBufferGeometry, self).__init__(**kwargs)

    _model_name = Unicode('LatheBufferGeometryModel').tag(sync=True)

    points = List(trait=List()).tag(sync=True)

    segments = CInt(12, allow_none=False).tag(sync=True)

    phiStart = CFloat(0, allow_none=False).tag(sync=True)

    phiLength = CFloat(6.283185307179586, allow_none=False).tag(sync=True)


if six.PY3:
    import inspect
    # Include explicit signature since the metaclass screws it up
    LatheBufferGeometry.__signature__ = inspect.signature(LatheBufferGeometry.__init__)
