Re: [Paraview] vtk renderer question

2018-06-26 Thread Sgouros, Thomas
Brilliant. I knew I was doing something dumb. Thank you.

 -Tom

On Tue, Jun 26, 2018 at 10:37 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> The reason why it is not working is because you removed the container of
> the renderer from the DOM.
> Therefore, you will have to set its container again... Basically it is
> rendering somewhere in a detached DOM element.
>
> You can do that, or simply use CSS to hide that DOM element.
>
> On Tue, Jun 26, 2018 at 8:15 AM Sgouros, Thomas 
> wrote:
>
>> Hi All:
>>
>> I have a vtk renderer in a ParaViewWeb application. I create it and then
>> attach it to a container for display using the setContainer() method.
>>
>> this.renderers.push(VtkRenderer.newInstance({
>>   client: this.model.pvwClient,
>>   viewId: result,
>> }) );
>> this.renderers[this.renderers.length - 1].setContainer(
>>   document.getElementById(container));
>>
>> This renders fine, and I can see the  I created and the 
>> inside it that appears to be the vtkRenderer.
>>
>> When I render the container invisible (through the click of a user
>> button) in the render function of its container, it disappears obediently,
>> but when I make it visible again, the canvas inside my container is
>> missing. Not zero size, just not present. I tried explicitly calling the
>> render() method of the vtkRenderer object, but that doesn't seem to do
>> anything.
>>
>> Here's what I'm doing:
>>
>> {
>>   this.rendererTwoVisible = !this.rendererTwoVisible;
>>   if (this.rendererTwoVisible) this.renderers[1].render(); //
>> Doesn't do anything.
>> }}>
>>...
>> { this.rendererTwoVisible ? (
>>   >width: '50%',
>>   }}>
>> >  view={this.renderers[1]?this.
>> renderers[1].getViewId():""}
>> />
>> >  style={{position: 'relative',
>>  height: '80vh',
>>  resize: 'both',
>>  overflow: 'hidden',
>>  zIndex: '10',
>> }}
>> />
>>   
>> ) : null }
>>
>> I feel like there is a render method I should be calling directly
>> somewhere, but can't figure out what or where that should be. Any
>> suggestions welcome,
>>
>> Thank you,
>>
>>  -Tom
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> ParaView discussion is moving! Please visit https://discourse.paraview.
>> org/ for future posts.
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/
>> opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/mailman/listinfo/paraview
>>
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtk renderer question

2018-06-26 Thread Sebastien Jourdain
The reason why it is not working is because you removed the container of
the renderer from the DOM.
Therefore, you will have to set its container again... Basically it is
rendering somewhere in a detached DOM element.

You can do that, or simply use CSS to hide that DOM element.

On Tue, Jun 26, 2018 at 8:15 AM Sgouros, Thomas 
wrote:

> Hi All:
>
> I have a vtk renderer in a ParaViewWeb application. I create it and then
> attach it to a container for display using the setContainer() method.
>
> this.renderers.push(VtkRenderer.newInstance({
>   client: this.model.pvwClient,
>   viewId: result,
> }) );
> this.renderers[this.renderers.length - 1].setContainer(
>   document.getElementById(container));
>
> This renders fine, and I can see the  I created and the 
> inside it that appears to be the vtkRenderer.
>
> When I render the container invisible (through the click of a user button)
> in the render function of its container, it disappears obediently, but when
> I make it visible again, the canvas inside my container is missing. Not
> zero size, just not present. I tried explicitly calling the render() method
> of the vtkRenderer object, but that doesn't seem to do anything.
>
> Here's what I'm doing:
>
> {
>   this.rendererTwoVisible = !this.rendererTwoVisible;
>   if (this.rendererTwoVisible) this.renderers[1].render(); //
> Doesn't do anything.
> }}>
>...
> { this.rendererTwoVisible ? (
>   width: '50%',
>   }}>
> 
>  view={this.renderers[1]?this.renderers[1].getViewId():""}
> />
>   style={{position: 'relative',
>  height: '80vh',
>  resize: 'both',
>  overflow: 'hidden',
>  zIndex: '10',
> }}
> />
>   
> ) : null }
>
> I feel like there is a render method I should be calling directly
> somewhere, but can't figure out what or where that should be. Any
> suggestions welcome,
>
> Thank you,
>
>  -Tom
>
>
> ___
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] vtk renderer question

2018-06-26 Thread Sgouros, Thomas
Hi All:

I have a vtk renderer in a ParaViewWeb application. I create it and then
attach it to a container for display using the setContainer() method.

this.renderers.push(VtkRenderer.newInstance({
  client: this.model.pvwClient,
  viewId: result,
}) );
this.renderers[this.renderers.length - 1].setContainer(
  document.getElementById(container));

This renders fine, and I can see the  I created and the 
inside it that appears to be the vtkRenderer.

When I render the container invisible (through the click of a user button)
in the render function of its container, it disappears obediently, but when
I make it visible again, the canvas inside my container is missing. Not
zero size, just not present. I tried explicitly calling the render() method
of the vtkRenderer object, but that doesn't seem to do anything.

Here's what I'm doing:

{
  this.rendererTwoVisible = !this.rendererTwoVisible;
  if (this.rendererTwoVisible) this.renderers[1].render(); //
Doesn't do anything.
}}>
   ...
{ this.rendererTwoVisible ? (
  


  
) : null }

I feel like there is a render method I should be calling directly
somewhere, but can't figure out what or where that should be. Any
suggestions welcome,

Thank you,

 -Tom
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Vive and Linux

2018-06-26 Thread David Thompson
> I think in the past PV with OpenVR has been built on Linux and worked. But 
> that was months ago so I'm not sure the current state of it.

I did manage to build and run it, but the drivers caused frequent hangs and 
crashes (not just ParaView, but all of Steam's apps, too). 

David
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Vive and Linux

2018-06-26 Thread Ken Martin
I think in the past PV with OpenVR has been built on Linux and worked. But
that was months ago so I'm not sure the current state of it.

On Tue, Jun 19, 2018 at 2:12 PM A  wrote:

> Any advancement on getting Paraview to play with Vive on Linux?
>
> Thanks!
> ashton
> ___
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Letters of Support for VTK proposal

2018-06-26 Thread Will Schroeder
We really can use more letters of support, they mean a lot in the review
process. Please consider sending us one. And thanks to those of you that
already have.
Best,
Will

On Fri, Jun 8, 2018 at 11:06 AM Will Schroeder 
wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Dear VTK Community-Kitware is submitting a VTK development grant proposal
> to the NIH in early July, and we’d like you to send us a letter of support
> for that proposal. This four year proposal aims to make significant
> improvements to VTK including rendering enhancements (VR and AR), better
> support for the web (such as VTK.js), improved data integration (supporting
> deep learning systems and federated, distributed databases, for example),
> and updated mechanisms for community support (improving the software and
> contribution process, documentation).We are very excited about the proposal
> since it will make a very positive impact on VTK, its community, and the
> many applications that use VTK. Several years ago we received a similar
> award and were able to revamp our rendering support (OpenGL), improve our
> software processes, and lay the foundation for VTK.js (among other
> achievements). Now, we can really use your help with our follow-on
> proposal. Part of the strategy of our proposal is to demonstrate to the
> reviewers that VTK plays a critical part in medical innovation. Along this
> line, we want to hear from the developers and users of VTK, so that they
> can indicate their support for VTK and our proposal.If you’d like to help,
> we have included three example letters.  Please modify one of them to fit
> your circumstances, copy it to your letterhead, sign it, and then send it
> (a scanned pdf is fine) directly to me by June 30. These letters in no way
> obligate you or your employer, they simply state “VTK is great and
> important to my work.” Also, don’t worry if you are not doing biomedical
> research, we want to hear from everybody. Note that this information (i.e.,
> the names of endorsers) is considered private, only the writers of the VTK
> proposal and the NIH review team will see this information.If you have any
> questions or concerns, please feel free to contact me directly. Thanks and
> we hope to hear from you (by June 30). Feel free to forward this to friends
> and family.Sincerely,Will SchroederStephen AylwardKen MartinExample support
> letters follow:Example 1=Dr. Ken MartinKitware, Inc.28 Corporate
> DriveClifton Park, NY 12065, USADear Dr. Martin,I am writing to indicate my
> support for your NIH proposal for the continued development of VTK. The VTK
> standards and software are absolutely critical to my lab, the ___ Lab at
> ___ University, and to my collaborators around the world. Even as we speak,
> I am working on a project involving complex visualizations using 3D Slicer,
> Osirix, ParaView, and ITKSnap (which are largely built on VTK). Several of
> my students also use VTK software libraries to write customized user
> interfaces and visualizations for my scientific and clinical collaborators.
> Our most recent application was for a physiologist who wanted to explore
> very specialized data related to the movement of the tongue in speech after
> glossectomy surgery.There are many worthy software projects under
> development around the world, but very few who can claim to be
> foundational. VTK can claim this, and I'm certain it can claim to be at the
> core of hundreds of software products that will be used by many biomedical
> researchers and thousands more that will be developed and used in-house.
> The complexity of visualization tasks has continued to grow with the volume
> of data and its connections across scales and from anatomy to function and
> from individuals to populations. VTK is keeping up with the demand—leading
> the rest, in fact—and should be a high priority for continued
> funding.Example 2=Dr. William J. SchroederKitware, Inc.28 Corporate
> DriveClifton Park, NY 12065, USADear Dr. Schroeder,I enthusiastically
> endorse your proposed effort to support and improve VTK. We use this open
> source software in our work and have found it extremely helpful as we
> create new technological solutions. We have developed a software
> application that is currently being used by around the world for scientific
> data visualization to gain new insights. Your Visualization Toolkit has
> provided the software tools needed to develop that application that has
> satisfied the needs of a very diverse customer base. We definitely would be
> interested in your proposed VR/AR enhancements and improved integration
> with web services. VTK fills a vital role in the international community’s
> scientific computing infrastructure; additional developments along the
> lines that you propose will certainly accelerate innovation.Example
> 3=Dr. Stephen R. AylwardKitware, Inc.101 East Weaver St, Ste
> G4Carrboro, NC  27510, USADear Dr. Aylward,I am writing in ardent support
> of