RobinTrace
Public Member Functions | Public Attributes | Private Member Functions | List of all members
transfer_part Class Reference

Part which applies a transfer operation to rays. More...

#include <transfer_part.h>

Inheritance diagram for transfer_part:
[legend]
Collaboration diagram for transfer_part:
[legend]

Public Member Functions

 transfer_part ()
 Default constructor. More...
 
 transfer_part (transfer _trf)
 Constructor with initialization to the transfer _trf. More...
 
virtual void apply (bun &b) override
 Apply the transfer operation to ray bundle b.
 
virtual void intersect (bun &b) override
 Do nothing. More...
 
virtual std::unique_ptr< lpartclone () const override
 Clone.
 
virtual bool is_transfer () override
 Is the part a transfer?
 
virtual bool is_renderable () override
 Is the part renderable?
 

Public Attributes

transfer trf
 The transfer operation to perform.
 

Private Member Functions

virtual std::string print_str () const override
 String for printing the object.
 

Detailed Description

Part which applies a transfer operation to rays.

Constructor & Destructor Documentation

◆ transfer_part() [1/2]

transfer_part::transfer_part ( )

Default constructor.

The default transfer() is used.

◆ transfer_part() [2/2]

transfer_part::transfer_part ( transfer  _trf)

Constructor with initialization to the transfer _trf.

Parameters
_trfInitial transfer operation.

Member Function Documentation

◆ intersect()

void transfer_part::intersect ( bun b)
overridevirtual

Do nothing.

Todo:
We need to revise the abstraction lpart and intersect.

Implements lpart.


The documentation for this class was generated from the following files: