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


Class name: Triangle extends: Envelope fields: swigCPtrForTriangle {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGTriangleToEnvelope: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForTriangle := newCPtr.
  ]

  Method [ getCPtrForTriangle
    ^swigCPtrForTriangle
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForTriangle ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_Triangle: swigCPtrForTriangle.
    ].
    swigCPtrForTriangle := 0.
    super delete.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForTriangle
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_Triangle__SWIG_0) memoryOwn: true
  ]

  Function [ duration: duration amplitude: amplitude
    ^self fromPointer: (CslNI cslNI_new_Triangle__SWIG_1: duration, amplitude) memoryOwn: true
  ]

  Function [ duration: duration initialDelay: initialDelay amplitude: amplitude
    ^self fromPointer: (CslNI cslNI_new_Triangle__SWIG_2: duration, initialDelay, amplitude) memoryOwn: true
  ]

}
