TPrsStd_AISPresentation

Hi:
My program has two split views(myViewer, myViewer2). Both are 3D view. I want to display object(s) on both.

In Doc.cpp
I did
TPrsStd_AISViewer::New(TD->Root(),myViewer);

Handle(AIS_InteractiveContext) CTX;
TPrsStd_AISViewer::Find(myStarsDoc->Main(), CTX);

Display object(s):

Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(aNewLabel, TNaming_NamedShape::GetID());

prs->Display(1);

It seems it always display on myViewer view. How can I let it display on myViewer2 view?

Thanks a lot.

Best regards,
Shawn

Patrik Mueller's picture

Hi Shawn,

where do you have your viewer? In the views or in the document (I think you use VC)?

Best regards,

Patrik

Shawn Yang's picture

Dear Patrik:
If you asking is where I create my viewer. The answer is in the document. And, you are right that I am using VC++(MDI) and based on MFC. Thanks a lot.

PS. It is same exactly like SampleOCAF. The only difference is I create two viewers.

Best regards,
Shawn