internal override IntPtr _InternalGetConstPointer() { #if RHINO_SDK if (m_doc != null) { return(UnsafeNativeMethods.CRhinoHatchPatternTable_GetHatchPatternPointer(m_doc.m_docId, m_id)); } #endif Rhino.FileIO.File3dm parent_file = m__parent as Rhino.FileIO.File3dm; if (parent_file != null) { IntPtr pModel = parent_file.NonConstPointer(); return(UnsafeNativeMethods.ONX_Model_GetHatchPatternPointer(pModel, m_id)); } return(IntPtr.Zero); }
internal override IntPtr _InternalGetConstPointer() { #if RHINO_SDK if (m_doc != null) { return(UnsafeNativeMethods.CRhinoLinetypeTable_GetLinetypePointer2(m_doc.m_docId, m_id)); } #endif Rhino.FileIO.File3dm file_parent = m__parent as Rhino.FileIO.File3dm; if (file_parent != null) { IntPtr pModel = file_parent.NonConstPointer(); return(UnsafeNativeMethods.ONX_Model_GetLinetypePointer(pModel, m_id)); } return(IntPtr.Zero); }
internal override IntPtr _InternalGetConstPointer() { #if RHINO_SDK if (m_doc != null) { return(UnsafeNativeMethods.CRhinoLayerTable_GetLayerPointer2(m_doc.m_docId, m_id)); } #endif if (m_onx_model != null) { IntPtr pModel = m_onx_model.NonConstPointer(); return(UnsafeNativeMethods.ONX_Model_GetLayerPointer(pModel, m_id)); } if (m__parent is LayerHolder) { LayerHolder holder = m__parent as LayerHolder; return(holder.ConstPointer()); } return(IntPtr.Zero); }