KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Expand KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Expand Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Expand Open Cascade TechnologyOpen Cascade Technology
Expand DataData
Expand MovementMovement
Expand FramesFrames
Expand Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse ItemsItems
IItem
ILabel3D_KC
IDynamicScreenItem_KC
IDynamicScreenItemManager_KC
ISmartLabelManager_KC
ISection
ISection2
ISectionPointSet
ISectionLineStrip
ITextSection_KC
IPipeSection
ILineSection_KC
IObjectPosition_KC
ISticky_KC
ILabelSection_KC
IModelHealer_KC
IPointCloud_KC
IProfiledElement_KC
Expand Mesh interfacesMesh interfaces
Expand GeneralGeneral
Expand Topological InterfacesTopological Interfaces
Expand Viewing InterfacesViewing Interfaces
Expand Lines And CurvesLines And Curves
Expand Symmetry InterfacesSymmetry Interfaces
Expand Clipping plane interfacesClipping plane interfaces
Expand AlgorithmsAlgorithms
Expand 2D Geometry2D Geometry
Expand Programming Samples and TutorialsProgramming Samples and Tutorials
Expand 3D Debugger3D Debugger
Expand DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Components > Interfaces > Sections > Items > IItem
IItem Interface

IItem Interface

GetVisibleFlag
SetVisible
GetName
SetName
GetParent
IsSelected
SetModified

IItem interface gives access to individual items in the 3D scene rendered during the model display. IItem is a common base for Sections (ISection) and 3D Label items. IItem is used mostly to query from all other interface implemented by the element of the scene.  

Query ITypeBasic_KC from this interface to obtain type of the item

See also Pick Sample, InterfaceInterface List


HRESULT GetVisibleFlag( VARIANT_BOOL *visible)

Parameters

visible - [out] returned value of visibility of the item

Returns

S_OK in case of success.

Remarks:

Returns true or false depending whether the item is visible in the 3D View


HRESULT SetVisible(VARIANT_BOOL visible)

Parameters

visible - [in] new visibility state.

Return Values

S_OK in case of success.
Remarks:
 
This method allows hiding or displaying the item

HRESULT GetName(BSTR *name)

Parameters

name - [out] name of the item

Return Values

S_OK in case of success.

HRESULT SetName(char* name)

Parameters

name - [in] name of the item

Return Values

S_OK in case of success.

HRESULT GetParent(IItem **parent)

Parameters

parent - [out] The returned IItem interface of the parent item or NULL if the item is a top-level one.

Return Values

S_OK in case of success.
Remarks:
 
In this release the parent item, if exists, is always an object, so query for ISection from parent should be always successful.

HRESULT IsSelected(VARIANT_BOOL* selected)

Remarks:
 
Returns true if the scene item (most often section) is the current item in the model

HRESULT SetModified()

Notifies the software that some attribute of the item or section has been modified. A call to this method is required after modification of some rare attributes which do not have internally direct access to the model.