Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / how to get the shape in AIS_InteractiveContext

how to get the shape in AIS_InteractiveContext

how to get the shape in AIS_InteractiveContext
WuXuan 2012/09/18 15:50
i want to get the shape when i click on the item of the treectrl. and the ais_shape will be hilight.

i try this:
AIS_ListOfInteractive aList;
myAISContext->DisplayedObjects(aList);
AIS_ListIteratorOfListOfInteractive aListIterator;
for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next())
{
     myAISContext->SetSelected(aListIterator.Value());
TopoDS_Shape S =myAISContext->SelectShape(); this step will have error.
}

what shall i do?
Dmitry Kidyaev 2012/09/21 23:38
1. To highlight I use hilight metohd.
2. To get the shape which corresponds to AIS_Shape. write ((AIS_shape*)aListIterator.Value())->Shape();     
WuXuan 2012/09/28 08:45
      thank
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map