Exemplo n.º 1
0
 internal override IntPtr _InternalGetConstPointer()
 {
     Rhino.DocObjects.Tables.LightTableEventArgs lte = m__parent as Rhino.DocObjects.Tables.LightTableEventArgs;
     if (lte != null)
     {
         return(lte.ConstLightPointer());
     }
     return(base._InternalGetConstPointer());
 }
Exemplo n.º 2
0
        internal override IntPtr _InternalGetConstPointer()
        {
            Rhino.DocObjects.Tables.LightTableEventArgs lte = m__parent as Rhino.DocObjects.Tables.LightTableEventArgs;
            if (lte != null)
            {
                return(lte.ConstLightPointer());
            }

            var pipeline = m__parent as Display.DisplayPipeline;

            if (pipeline != null)
            {
                IntPtr pipeline_ptr = pipeline.NonConstPointer();
                return(UnsafeNativeMethods.CRhinoDisplayPipeline_GetLight(pipeline_ptr, m_subobject_index));
            }
            return(base._InternalGetConstPointer());
        }