SlideShare a Scribd company logo
1 of 25
VTK
Sonu mangal
Prepared by,
C4console.com
VTK
• VTK stands for Visualization tool kit
•Act or process of interpreting in visual terms or
of putting into visual form.
• in other words, transformation of data or
information into picture.
•Example : Weather forecasting maps
C4console.com
VTK Process
C4console.com
How to create VTK file?
various ways to create VTK file like C++, Java,
Python and so on.
Import header file or standard library file and
simple use them.
C4console.com
Create cone file using VTK
Step 1: Header file
first include the required header files for the vtk
classes we are using like for cone,
#include "vtkConeSource.h"
#include "vtkPolyDataMapper.h“
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h“
C4console.com
Create cone file using VTK
Step 2: Source
In our case, source is a cone.
Next we create an instance of vtkConeSource
and set some of its properties.
Is a source process object means with no input.
Part of visualization pipeline.
Only produces data of output type is
vtkpolydata. Which other filter may process.
C4console.com
Create cone file using VTK >
Source
Step 2: Source
// create instance of cone
vtkConeSource *cone = vtkConeSource::New();
// set properties
cone->SetHeight( 3.0 );
cone->SetRadius( 1.0 );
cone->SetResolution( 10 );
C4console.com
Create cone file using VTK
Step : filter
Process with both input and output.
Filter will be process object with at least one
input and one output (intermediate data store will
not be represented)
C4console.com
Create cone file using VTK
Step : intermediate filter
Output of source should be behave as input for
mapper by using these filter.
Source mapper
Intermediate filter
(Vtk shrink polydata filter)
C4console.com
Create cone file using VTK
Step 3: mapper
Now we create an instance of mapper to map
the polygonal data into graphics primitives.
 declared in vtkploydatamapper.h header file.
 also known as sink.
Process that consume data with no output.
Because these process map data to a final
image or output.
C4console.com
Create cone file using
VTK>mapper
Step 3: mapper
// create instance of mapper
vtkPolyDataMapper *coneMapper =
vtkPolyDataMapper::New();
// output of source into mapper
coneMapper->SetInputConnection( cone-
>GetOutputPort() );
C4console.com
Pipeline
Consist of object to represent,
•Data object
•Process Object
•Arrow connection object
C4console.com
Pipeline topology
Element of pipeline: Source, filter and mapper to
create visualization pipeline or network
C4console.com
Pipeline issue
Mostly 2 important issue that arises when we
use pipeline
1. Type
2. Multiplicity
Type :
means the form or type of data that process
object take as input or generate output.
For ex: Sphere, cone
C4console.com
Pipeline issue
Multiplicity
Is used to read a data file and manipulate them
and to also show them.
For ex: stream file
C4console.com
Create cone file using VTK
Step 4: actor
Previously, we create source and set properties
and then map them now, we represent the cone.
Actor rendering of the mapper's graphics
primitives.
An actor also refers to properties via a
vtkProperty instance, and includes an internal
transformation matrix.
We set this actor's mapper to be coneMapper
which we created previous.
C4console.com
Create cone file using
VTK>actor
Step 4: actor
// set mapper graphics into actor for
represent
vtkActor *coneActor = vtkActor::New();
coneActor->SetMapper( coneMapper );
C4console.com
Create cone file using VTK
Step 5: rendering
Render is the process to convert data as input
and converted into graphics or pictorial
representation.
A renderer is like a viewport.
It is part or all of a window on the screen and it
is
responsible for drawing the actors it has.
 also set the background color here.
C4console.com
Create cone file using
VTK>render
Step 5: rendering
// create render object
vtkRenderer *ren1= vtkRenderer::New();
// add render with actor
ren1->AddActor( coneActor );
// set background
ren1->SetBackground( 0.1, 0.2, 0.4 );
C4console.com
Create cone file using VTK
Step 6: rendering window
 Now, finally show output in screen by
using renderwindow.h header file .
 we put our renderer into the render window
using AddRenderer.
C4console.com
Create cone file using
VTK>render window
Step 6: rendering window
// create renderwindow object
vtkRenderWindow *renWin =
vtkRenderWindow::New();
// add renderwindow with render
renWin->AddRenderer( ren1 );
C4console.com
Create cone file using
Step 7: delete
Now we free OS memory or to release
resource by using delete() function.
cone->Delete();
coneMapper->Delete();
coneActor->Delete();
ren1->Delete();
renWin->Delete();
C4console.com
Result
When we configure and generate .cxx file
then we get following result like,
C4console.com
Thank you
C4console.com
For more details:
www.c4console.com
C4console.com

More Related Content

What's hot

Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData InfluxData
 
From Ceilometer to Telemetry: not so alarming!
From Ceilometer to Telemetry: not so alarming!From Ceilometer to Telemetry: not so alarming!
From Ceilometer to Telemetry: not so alarming!Nicolas (Nick) Barcet
 
Gelly in Apache Flink Bay Area Meetup
Gelly in Apache Flink Bay Area MeetupGelly in Apache Flink Bay Area Meetup
Gelly in Apache Flink Bay Area MeetupVasia Kalavri
 
k-means algorithm implementation on Hadoop
k-means algorithm implementation on Hadoopk-means algorithm implementation on Hadoop
k-means algorithm implementation on HadoopStratos Gounidellis
 
Connect S3 with Kafka using Akka Streams
Connect S3 with Kafka using Akka Streams Connect S3 with Kafka using Akka Streams
Connect S3 with Kafka using Akka Streams Seiya Mizuno
 
Apache Flink @ NYC Flink Meetup
Apache Flink @ NYC Flink MeetupApache Flink @ NYC Flink Meetup
Apache Flink @ NYC Flink MeetupStephan Ewen
 

What's hot (11)

Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
 
Stack Data structure
Stack Data structureStack Data structure
Stack Data structure
 
From Ceilometer to Telemetry: not so alarming!
From Ceilometer to Telemetry: not so alarming!From Ceilometer to Telemetry: not so alarming!
From Ceilometer to Telemetry: not so alarming!
 
Gelly in Apache Flink Bay Area Meetup
Gelly in Apache Flink Bay Area MeetupGelly in Apache Flink Bay Area Meetup
Gelly in Apache Flink Bay Area Meetup
 
k-means algorithm implementation on Hadoop
k-means algorithm implementation on Hadoopk-means algorithm implementation on Hadoop
k-means algorithm implementation on Hadoop
 
Theads services
Theads servicesTheads services
Theads services
 
Connect S3 with Kafka using Akka Streams
Connect S3 with Kafka using Akka Streams Connect S3 with Kafka using Akka Streams
Connect S3 with Kafka using Akka Streams
 
Apache Flink @ NYC Flink Meetup
Apache Flink @ NYC Flink MeetupApache Flink @ NYC Flink Meetup
Apache Flink @ NYC Flink Meetup
 
Reactive Extensions
Reactive ExtensionsReactive Extensions
Reactive Extensions
 
Intro to Akka Streams
Intro to Akka StreamsIntro to Akka Streams
Intro to Akka Streams
 
Database c# connetion
Database c# connetionDatabase c# connetion
Database c# connetion
 

Viewers also liked

Trabalho processos fab_p2
Trabalho processos fab_p2Trabalho processos fab_p2
Trabalho processos fab_p2Rafael Bertoli
 
As the deer
As the deerAs the deer
As the deersutngai
 
Slideshare ronald leal
Slideshare  ronald lealSlideshare  ronald leal
Slideshare ronald lealRonald1994a
 
Curriculam vitae
Curriculam vitaeCurriculam vitae
Curriculam vitaeAyush Singh
 
Michele Moger Master
Michele Moger MasterMichele Moger Master
Michele Moger MasterMichele Moger
 
POR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIR
POR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIRPOR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIR
POR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIR3223084208ma
 

Viewers also liked (9)

Tarea sobre el SlideShare
Tarea sobre el SlideShareTarea sobre el SlideShare
Tarea sobre el SlideShare
 
Trabalho processos fab_p2
Trabalho processos fab_p2Trabalho processos fab_p2
Trabalho processos fab_p2
 
As the deer
As the deerAs the deer
As the deer
 
Slideshare ronald leal
Slideshare  ronald lealSlideshare  ronald leal
Slideshare ronald leal
 
Curriculam vitae
Curriculam vitaeCurriculam vitae
Curriculam vitae
 
Michele Moger Master
Michele Moger MasterMichele Moger Master
Michele Moger Master
 
Brochure
BrochureBrochure
Brochure
 
POR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIR
POR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIRPOR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIR
POR MI, POR VOZ Y POR LOS QUE ESTAN POR VENIR
 
Final Presentation Slidshare
Final Presentation Slidshare Final Presentation Slidshare
Final Presentation Slidshare
 

Similar to Vtk file

Technical Report Vawtrak v2
Technical Report Vawtrak v2Technical Report Vawtrak v2
Technical Report Vawtrak v2Blueliv
 
Transmogrifier: Migrating to Plone with less pain
Transmogrifier: Migrating to Plone with less painTransmogrifier: Migrating to Plone with less pain
Transmogrifier: Migrating to Plone with less painLennart Regebro
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymorePragya Rastogi
 
Tracking Syscall and Function Latency in Your k8s Cluster with eBPF
Tracking Syscall and Function Latency in Your k8s Cluster with eBPFTracking Syscall and Function Latency in Your k8s Cluster with eBPF
Tracking Syscall and Function Latency in Your k8s Cluster with eBPFScyllaDB
 
200519 TMU Ubiquitous Robot
200519 TMU Ubiquitous Robot200519 TMU Ubiquitous Robot
200519 TMU Ubiquitous RobotNoriakiAndo
 
ITK Tutorial Presentation Slides-944
ITK Tutorial Presentation Slides-944ITK Tutorial Presentation Slides-944
ITK Tutorial Presentation Slides-944Kitware Kitware
 
Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2Alessandro Molina
 
The Visualization Toolkit (VTK) and why you might care about it
The Visualization Toolkit (VTK) and why you might care about itThe Visualization Toolkit (VTK) and why you might care about it
The Visualization Toolkit (VTK) and why you might care about itJiahao Chen
 
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...Dominik Obermaier
 
Build on Streakk Chain - Blockchain
Build on Streakk Chain - BlockchainBuild on Streakk Chain - Blockchain
Build on Streakk Chain - BlockchainEarn.World
 
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...Andrey Karpov
 
Twelve ways to make your apps suck less
Twelve ways to make your apps suck lessTwelve ways to make your apps suck less
Twelve ways to make your apps suck lessFons Sonnemans
 
React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...
React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...
React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...Wojciech Kwiatek
 
Building a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxData
Building a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxDataBuilding a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxData
Building a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxDataInfluxData
 
The current state of web on mobile - Have smartphone browsers gotten smarter?
The current state of web on mobile - Have smartphone browsers gotten smarter?The current state of web on mobile - Have smartphone browsers gotten smarter?
The current state of web on mobile - Have smartphone browsers gotten smarter?Tomomi Imura
 
Introduction to WebRTC
Introduction to WebRTCIntroduction to WebRTC
Introduction to WebRTCPatrick Cason
 
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...NETWAYS
 

Similar to Vtk file (20)

Technical Report Vawtrak v2
Technical Report Vawtrak v2Technical Report Vawtrak v2
Technical Report Vawtrak v2
 
Transmogrifier: Migrating to Plone with less pain
Transmogrifier: Migrating to Plone with less painTransmogrifier: Migrating to Plone with less pain
Transmogrifier: Migrating to Plone with less pain
 
TibcoBE-Development
TibcoBE-DevelopmentTibcoBE-Development
TibcoBE-Development
 
FLAR Workflow
FLAR WorkflowFLAR Workflow
FLAR Workflow
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymore
 
Power ai image-pipeline
Power ai image-pipelinePower ai image-pipeline
Power ai image-pipeline
 
Tracking Syscall and Function Latency in Your k8s Cluster with eBPF
Tracking Syscall and Function Latency in Your k8s Cluster with eBPFTracking Syscall and Function Latency in Your k8s Cluster with eBPF
Tracking Syscall and Function Latency in Your k8s Cluster with eBPF
 
200519 TMU Ubiquitous Robot
200519 TMU Ubiquitous Robot200519 TMU Ubiquitous Robot
200519 TMU Ubiquitous Robot
 
ITK Tutorial Presentation Slides-944
ITK Tutorial Presentation Slides-944ITK Tutorial Presentation Slides-944
ITK Tutorial Presentation Slides-944
 
Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2
 
The Visualization Toolkit (VTK) and why you might care about it
The Visualization Toolkit (VTK) and why you might care about itThe Visualization Toolkit (VTK) and why you might care about it
The Visualization Toolkit (VTK) and why you might care about it
 
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
 
Build on Streakk Chain - Blockchain
Build on Streakk Chain - BlockchainBuild on Streakk Chain - Blockchain
Build on Streakk Chain - Blockchain
 
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
 
Twelve ways to make your apps suck less
Twelve ways to make your apps suck lessTwelve ways to make your apps suck less
Twelve ways to make your apps suck less
 
React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...
React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...
React Native EU 2021 - Creating a VoIP app in React Native - the beginner's g...
 
Building a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxData
Building a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxDataBuilding a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxData
Building a Telegraf Plugin by Noah Crowly | Developer Advocate | InfluxData
 
The current state of web on mobile - Have smartphone browsers gotten smarter?
The current state of web on mobile - Have smartphone browsers gotten smarter?The current state of web on mobile - Have smartphone browsers gotten smarter?
The current state of web on mobile - Have smartphone browsers gotten smarter?
 
Introduction to WebRTC
Introduction to WebRTCIntroduction to WebRTC
Introduction to WebRTC
 
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Vtk file

  • 2. VTK • VTK stands for Visualization tool kit •Act or process of interpreting in visual terms or of putting into visual form. • in other words, transformation of data or information into picture. •Example : Weather forecasting maps C4console.com
  • 4. How to create VTK file? various ways to create VTK file like C++, Java, Python and so on. Import header file or standard library file and simple use them. C4console.com
  • 5. Create cone file using VTK Step 1: Header file first include the required header files for the vtk classes we are using like for cone, #include "vtkConeSource.h" #include "vtkPolyDataMapper.h“ #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h“ C4console.com
  • 6. Create cone file using VTK Step 2: Source In our case, source is a cone. Next we create an instance of vtkConeSource and set some of its properties. Is a source process object means with no input. Part of visualization pipeline. Only produces data of output type is vtkpolydata. Which other filter may process. C4console.com
  • 7. Create cone file using VTK > Source Step 2: Source // create instance of cone vtkConeSource *cone = vtkConeSource::New(); // set properties cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 10 ); C4console.com
  • 8. Create cone file using VTK Step : filter Process with both input and output. Filter will be process object with at least one input and one output (intermediate data store will not be represented) C4console.com
  • 9. Create cone file using VTK Step : intermediate filter Output of source should be behave as input for mapper by using these filter. Source mapper Intermediate filter (Vtk shrink polydata filter) C4console.com
  • 10. Create cone file using VTK Step 3: mapper Now we create an instance of mapper to map the polygonal data into graphics primitives.  declared in vtkploydatamapper.h header file.  also known as sink. Process that consume data with no output. Because these process map data to a final image or output. C4console.com
  • 11. Create cone file using VTK>mapper Step 3: mapper // create instance of mapper vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); // output of source into mapper coneMapper->SetInputConnection( cone- >GetOutputPort() ); C4console.com
  • 12. Pipeline Consist of object to represent, •Data object •Process Object •Arrow connection object C4console.com
  • 13. Pipeline topology Element of pipeline: Source, filter and mapper to create visualization pipeline or network C4console.com
  • 14. Pipeline issue Mostly 2 important issue that arises when we use pipeline 1. Type 2. Multiplicity Type : means the form or type of data that process object take as input or generate output. For ex: Sphere, cone C4console.com
  • 15. Pipeline issue Multiplicity Is used to read a data file and manipulate them and to also show them. For ex: stream file C4console.com
  • 16. Create cone file using VTK Step 4: actor Previously, we create source and set properties and then map them now, we represent the cone. Actor rendering of the mapper's graphics primitives. An actor also refers to properties via a vtkProperty instance, and includes an internal transformation matrix. We set this actor's mapper to be coneMapper which we created previous. C4console.com
  • 17. Create cone file using VTK>actor Step 4: actor // set mapper graphics into actor for represent vtkActor *coneActor = vtkActor::New(); coneActor->SetMapper( coneMapper ); C4console.com
  • 18. Create cone file using VTK Step 5: rendering Render is the process to convert data as input and converted into graphics or pictorial representation. A renderer is like a viewport. It is part or all of a window on the screen and it is responsible for drawing the actors it has.  also set the background color here. C4console.com
  • 19. Create cone file using VTK>render Step 5: rendering // create render object vtkRenderer *ren1= vtkRenderer::New(); // add render with actor ren1->AddActor( coneActor ); // set background ren1->SetBackground( 0.1, 0.2, 0.4 ); C4console.com
  • 20. Create cone file using VTK Step 6: rendering window  Now, finally show output in screen by using renderwindow.h header file .  we put our renderer into the render window using AddRenderer. C4console.com
  • 21. Create cone file using VTK>render window Step 6: rendering window // create renderwindow object vtkRenderWindow *renWin = vtkRenderWindow::New(); // add renderwindow with render renWin->AddRenderer( ren1 ); C4console.com
  • 22. Create cone file using Step 7: delete Now we free OS memory or to release resource by using delete() function. cone->Delete(); coneMapper->Delete(); coneActor->Delete(); ren1->Delete(); renWin->Delete(); C4console.com
  • 23. Result When we configure and generate .cxx file then we get following result like, C4console.com