KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse 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
Collapse 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
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse 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.