MCPcopy Create free account
hub / github.com/Kitware/VTK / Initialize

Method Initialize

Rendering/UI/vtkWebAssemblyRenderWindowInteractor.cxx:578–606  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

576
577//------------------------------------------------------------------------------
578void vtkWebAssemblyRenderWindowInteractor::Initialize()
579{
580 vtkRenderWindow* ren;
581 int* size;
582
583 // make sure we have a RenderWindow and camera
584 if (!this->RenderWindow)
585 {
586 vtkErrorMacro(<< "No renderer defined!");
587 return;
588 }
589 if (this->Initialized)
590 {
591 return;
592 }
593 this->Initialized = 1;
594 // get the info we need from the RenderingWindow
595 ren = this->RenderWindow;
596 ren->Start();
597 ren->End();
598 size = ren->GetSize();
599 ren->GetPosition();
600
601 this->Enable();
602 this->Size[0] = size[0];
603 this->Size[1] = size[1];
604
605 vtkInitializeCanvasElement(this->CanvasSelector, this->ExpandCanvasToContainer);
606}
607
608//------------------------------------------------------------------------------
609void vtkWebAssemblyRenderWindowInteractor::StartEventLoop()

Callers 1

ProcessEventsMethod · 0.95

Calls 5

StartMethod · 0.45
EndMethod · 0.45
GetSizeMethod · 0.45
GetPositionMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected