// **************************************************************************** // Method: avtImageCompositer::AddImageInput // // Purpose: // Sets an input's image data and offset in the output. // // Programmer: Mark C. Miller // Creation: February 18, 2003 // **************************************************************************** void avtImageCompositer::AddImageInput(avtImage_p image, int rowOffset, int colOffset) { avtImageRepresentation& imageRep = image->GetImage(); int imageRows, imageCols; imageRep.GetSize(&imageRows, &imageCols); if ((imageRows + rowOffset > outRows) || (imageCols + colOffset > outCols)) EXCEPTION0(ImproperUseException); imageRep.SetOrigin(rowOffset, colOffset); inputImages.push_back(image); }
void avtRayCompositer::InsertOpaqueImage(avtImage_p img) { avtImageRepresentation &rep = img->GetImage(); if (rep.GetZBuffer() == NULL) { // // How can we incorporate an image if it has no zbuffer? // EXCEPTION1(ImproperUseException, "Need Z buffer."); } opaqueImage = img; }
void avtImageSource::SetOutput(avtImage_p img) { image->SetImage(img->GetImage()); }