VSG Logo   OpenInventor Forum

Go Back   Open Inventor Forum > Open Inventor Main Forum

Open Inventor Main Forum General discussions about Open Inventor from VSG

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2012, 06:13 AM
East2010 East2010 is offline
Distinguished Member
 
Join Date: Aug 2011
Location: China
Posts: 117
Default how to do?

How to create a little coordination in the left-down corner,it rotates when the main coordination does?
Attached Images
File Type: png coor.PNG (2.4 KB, 3 views)
Reply With Quote
  #2  
Old 04-10-2012, 05:03 AM
mikeheck's Avatar
mikeheck mikeheck is offline
Moderator
 
Join Date: Sep 2008
Location: Carlsbad, CA, USA
Posts: 809
Default

Quote:
Originally Posted by East2010 View Post
How to create a little coordination in the left-down corner,it rotates when the main coordination does?
There is an example in this thread.

Should still work. Let me know if there is any problem. :-)
Note: Since Open Inventor 8.6 you can use the SoDepthBuffer node to clear the OpenGL depth buffer. So it's no longer necessary to make OpenGL calls directly (like this example does).
Reply With Quote
  #3  
Old 04-11-2012, 09:01 AM
East2010 East2010 is offline
Distinguished Member
 
Join Date: Aug 2011
Location: China
Posts: 117
Default

I create a gnomon as you told me and it works.
But I find that SoROIManip is not ok after I created the gnomon.

I create a subvolume,in order to resize and move it,I use SoROIManip.

Code:
	SoROIManip* g_ROIManip = new SoROIManip();
	g_ROIManip->box.setValue(SbVec3i32(0,0,0), SbVec3i32(mg_volData->data.getSize()[0],mg_volData->data.getSize()[1],mg_volData->data.getSize()[2]) );
	g_ROIManip->subVolume.setValue(  SbVec3i32(mg_volData->data.getSize()[0]/4,mg_volData->data.getSize()[1]/4,mg_volData->data.getSize()[2]/4), SbVec3i32(mg_volData->data.getSize()[0]*3/4,mg_volData->data.getSize()[1]*3/4,mg_volData->data.getSize()[2]*3/4) );
	g_ROIManip->constrained = TRUE;
	g_ROIManip->boxOn = false;
see as ok.png.

I create the gnomon with following code:
Code:
	SoSeparator *pGnomon = makeGnomon();
	ldmnode->addChild( pGnomon );
and the ROIManip location is not normal (as notok.jpg)
Attached Images
File Type: jpg notok.jpg (10.1 KB, 6 views)
File Type: jpg ok.jpg (9.5 KB, 6 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright VSG, SAS, 2008.